From: Nathan S. Evans Date: Mon, 1 Feb 2010 15:11:13 +0000 (+0000) Subject: try connect fix, just because we have a neighbor in our list doesn't necessarily... X-Git-Tag: initial-import-from-subversion-38251~22818 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=475c66842ebf9374b2a3696fc90828fd4656bcf1;p=oweals%2Fgnunet.git try connect fix, just because we have a neighbor in our list doesn't necessarily mean we can already talk to it. Functional bug apparently --- diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index 24775f89f..704ce8934 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c @@ -951,18 +951,6 @@ request_connect (void *cls, size_t size, void *buf) GNUNET_assert (th->notify_delay_task == GNUNET_SCHEDULER_NO_TASK); h = th->handle; - n = find_neighbour(h, &th->target); - - if (n != NULL) - { -#if DEBUG_TRANSPORT - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Asked to TRY_CONNECT to already connected peer!\n"); -#endif - return GNUNET_YES; - } - - if (buf == NULL) { #if DEBUG_TRANSPORT @@ -1653,7 +1641,6 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg) "Do know neighbor, scheduling transmission!\n"); #endif n = find_neighbour(h, &cim->id); - GNUNET_assert(n != NULL); n->received_ack = GNUNET_YES; if (NULL != n->transmit_handle) {