simplify
authorChristian Grothoff <christian@grothoff.org>
Fri, 5 Aug 2011 08:39:20 +0000 (08:39 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 5 Aug 2011 08:39:20 +0000 (08:39 +0000)
src/transport/gnunet-service-transport_clients.c

index 1cf3d09592725e6b5468592edcd1ffbd76e6e096..1ef28ad90b7d3669f69d8976e7464834c25abfe1 100644 (file)
@@ -548,17 +548,16 @@ GST_clients_handle_address_lookup (void *cls,
     }
   rtimeout = GNUNET_TIME_relative_ntoh (alum->timeout);
   numeric = ntohl (alum->numeric_only);
+  tc = GNUNET_SERVER_transmit_context_create (client);
   papi = GST_plugins_find (plugin_name);
   if (NULL == papi)
     {
-      tc = GNUNET_SERVER_transmit_context_create (client);
       GNUNET_SERVER_transmit_context_append_data (tc, NULL, 0,
                                                  GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY);
       GNUNET_SERVER_transmit_context_run (tc, rtimeout);
       return;
     }
   GNUNET_SERVER_disable_receive_done_warning (client);
-  tc = GNUNET_SERVER_transmit_context_create (client);
   papi->address_pretty_printer (papi->cls,
                                plugin_name,
                                address, address_len,