gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r11187 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r11187 - gnunet/src/transport
Date: Tue, 4 May 2010 18:55:27 +0200

Author: grothoff
Date: 2010-05-04 18:55:27 +0200 (Tue, 04 May 2010)
New Revision: 11187

Modified:
   gnunet/src/transport/plugin_transport_http.c
   gnunet/src/transport/test_plugin_transport_http.c
Log:
fixes

Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c        2010-05-04 16:49:18 UTC 
(rev 11186)
+++ gnunet/src/transport/plugin_transport_http.c        2010-05-04 16:55:27 UTC 
(rev 11187)
@@ -402,6 +402,7 @@
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                 _("Failed to retrieve statistics handle\n"));
+    GNUNET_free (api);
     return NULL;
   }
 
@@ -410,6 +411,7 @@
   if ( (NULL == http_daemon) || (NULL == curl_multi))
   {
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Initializing http plugin failed\n");
+    GNUNET_free (api);
     return NULL;
   }
   else

Modified: gnunet/src/transport/test_plugin_transport_http.c
===================================================================
--- gnunet/src/transport/test_plugin_transport_http.c   2010-05-04 16:49:18 UTC 
(rev 11186)
+++ gnunet/src/transport/test_plugin_transport_http.c   2010-05-04 16:55:27 UTC 
(rev 11187)
@@ -204,7 +204,6 @@
   cfg = c;
 
   timeout_task = GNUNET_SCHEDULER_add_delayed ( sched,  
GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5), &timeout_error, 
NULL);
-
   /* parse configuration */
   if ((GNUNET_OK !=
        GNUNET_CONFIGURATION_get_value_number (c,
@@ -228,7 +227,9 @@
   /*
   max_connect_per_transport = (uint32_t) tneigh;
   my_private_key = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile);
+  */
   GNUNET_free (keyfile);
+  /*
   if (my_private_key == NULL)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]