disable warning
authorChristian Grothoff <christian@grothoff.org>
Tue, 14 Jun 2011 12:09:46 +0000 (12:09 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 14 Jun 2011 12:09:46 +0000 (12:09 +0000)
src/transport/gnunet-service-transport.c

index 875e56938dc725bd5311d24d5f8a0dcaa5a0d9e9..5f54255a62135fdb2503135156d3057485322d2d 100644 (file)
@@ -5840,15 +5840,16 @@ transmit_address_to_client (void *cls, const char *address)
   struct GNUNET_SERVER_TransmitContext *tc = cls;
   size_t slen;
 
-  if (NULL == address)
-    slen = 0;
+  if (NULL != address)
+    {
+      slen = strlen (address) + 1;
+      GNUNET_SERVER_transmit_context_append_data (tc, address, slen,
+                                                 GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY);
+    }
   else
-    slen = strlen (address) + 1;
-
-  GNUNET_SERVER_transmit_context_append_data (tc, address, slen,
-                                             GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY);
-  if (NULL == address)
-    GNUNET_SERVER_transmit_context_run (tc, GNUNET_TIME_UNIT_FOREVER_REL);
+    {
+      GNUNET_SERVER_transmit_context_run (tc, GNUNET_TIME_UNIT_FOREVER_REL);
+    }
 }
 
 
@@ -5910,6 +5911,7 @@ handle_address_lookup (void *cls,
       GNUNET_SERVER_transmit_context_run (tc, rtimeout);
       return;
     }
+  GNUNET_SERVER_disable_receive_done_warning (client);
   tc = GNUNET_SERVER_transmit_context_create (client);
   lsPlugin->api->address_pretty_printer (lsPlugin->api->cls,
                                         nameTransport,