From: Christian Grothoff Date: Fri, 2 Sep 2011 07:57:14 +0000 (+0000) Subject: LRN: fast and dirty transport crash fix X-Git-Tag: initial-import-from-subversion-38251~17245 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4c98b8706cad51e2730eea9789dd2df682a587f5;p=oweals%2Fgnunet.git LRN: fast and dirty transport crash fix --- diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 67dc4e962..5bf3c4c77 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -1613,6 +1613,12 @@ transmit_send_continuation (void *cls, const struct GNUNET_PeerIdentity *target, mq->specific_address->in_transmit = GNUNET_NO; } n = find_neighbour (&mq->neighbour_id); + if (n == NULL) + { + GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, "transmit_send_continuation", + "Neighbour `%s' no longer exists\n", GNUNET_i2s (&mq->neighbour_id)); + return; + } if (mq->client != NULL) transmit_send_ok (mq->client, n, target, result); GNUNET_assert (n != NULL);