fix warning
authorNathan S. Evans <evans@in.tum.de>
Thu, 17 Feb 2011 09:52:04 +0000 (09:52 +0000)
committerNathan S. Evans <evans@in.tum.de>
Thu, 17 Feb 2011 09:52:04 +0000 (09:52 +0000)
src/core/gnunet-service-core.c

index 81d851265ff3fde3524205c42f0bb056bd2da753..44052709b9bd07c9ee14d5824022e0646e7169b7 100644 (file)
@@ -2964,6 +2964,7 @@ handle_client_request_connect (void *cls,
       GNUNET_SERVER_receive_done (client, GNUNET_OK);
       return;
     }
+  timeout = GNUNET_TIME_relative_ntoh (cm->timeout);
   GNUNET_break (ntohl (cm->reserved) == 0);
   GNUNET_SERVER_receive_done (client, GNUNET_OK);
   n = find_neighbour (&cm->peer);
@@ -3008,7 +3009,6 @@ handle_client_request_connect (void *cls,
              "REQUEST_CONNECT",
              GNUNET_i2s (&cm->peer));
 
-  timeout = GNUNET_TIME_relative_ntoh (cm->timeout);
   /* ask transport to connect to the peer */
   n->th = GNUNET_TRANSPORT_notify_transmit_ready (transport,
                                                  &cm->peer,