gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r23488 - gnunet/src/transport
Date: Wed, 29 Aug 2012 10:14:23 +0200

Author: wachs
Date: 2012-08-29 10:14:22 +0200 (Wed, 29 Aug 2012)
New Revision: 23488

Modified:
   gnunet/src/transport/plugin_transport_http_client.c
   gnunet/src/transport/test_plugin_transport.c
Log:
changes


Modified: gnunet/src/transport/plugin_transport_http_client.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_client.c 2012-08-29 07:41:46 UTC 
(rev 23487)
+++ gnunet/src/transport/plugin_transport_http_client.c 2012-08-29 08:14:22 UTC 
(rev 23488)
@@ -936,12 +936,7 @@
                      GNUNET_i2s (&s->target));
     return GNUNET_SYSERR;
   }
-  else
-    GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name,
-                     "address peer `%s'\n",
-                     http_common_plugin_address_to_string (plugin, s->addr, 
s->addrlen));
 
-
   GNUNET_asprintf (&url, "%s/%s;%u",
       http_common_plugin_address_to_string (plugin, s->addr, s->addrlen),
                    GNUNET_h2s_full (&plugin->env->my_identity->hashPubKey),
@@ -1096,8 +1091,6 @@
   ats.value = htonl (GNUNET_ATS_NET_UNSPECIFIED);
   sa = http_common_socket_from_address (address->address, 
address->address_length, &res);
 
-
-
   if (GNUNET_SYSERR == res)
   {
       return NULL;

Modified: gnunet/src/transport/test_plugin_transport.c
===================================================================
--- gnunet/src/transport/test_plugin_transport.c        2012-08-29 07:41:46 UTC 
(rev 23487)
+++ gnunet/src/transport/test_plugin_transport.c        2012-08-29 08:14:22 UTC 
(rev 23488)
@@ -135,6 +135,8 @@
   void *addr;
 
   size_t addrlen;
+
+  char *addrstring;
 };
 
 static void
@@ -183,9 +185,12 @@
   while (NULL != head)
   {
       w = head;
+      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                _("Plugin did not remove address `%s' \n"), w->addrstring);
       GNUNET_CONTAINER_DLL_remove (head, tail, w);
       c ++;
       GNUNET_free (w->addr);
+      GNUNET_free (w->addrstring);
       GNUNET_free (w);
   }
   if (c > 0)
@@ -286,7 +291,7 @@
           end_badly_now();
           return;
       }
-
+      w->addrstring = strdup (api->address_to_string (api, w->addr, 
w->addrlen));
       GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                   _("Plugin added address `%s'\n"), a2s);
 
@@ -353,6 +358,7 @@
 
       GNUNET_CONTAINER_DLL_remove (head, tail, w);
       GNUNET_free (w->addr);
+      GNUNET_free (w->addrstring);
       GNUNET_free (w);
   }
   else




reply via email to

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