From 4d376f37277e567271b9c128fadee53c3de437a0 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Mon, 1 Feb 2010 14:35:14 +0000 Subject: [PATCH] coverity fix --- src/transport/transport_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index cbcabfb3b..24775f89f 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c @@ -951,7 +951,7 @@ 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, &tcm->peer); + n = find_neighbour(h, &th->target); if (n != NULL) { @@ -1653,6 +1653,7 @@ 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) { -- 2.25.1