From: Philipp Tölke Date: Wed, 21 Sep 2011 07:44:10 +0000 (+0000) Subject: we do not want to crash if somebody leaves the net X-Git-Tag: initial-import-from-subversion-38251~16992 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4810b4cceb07ca6a325376bfcc4e5abdb1586685;p=oweals%2Fgnunet.git we do not want to crash if somebody leaves the net --- diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 8476be396..4b6731d3f 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -336,7 +336,8 @@ core_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) tail); GNUNET_free (tail); } - GNUNET_CORE_notify_transmit_ready_cancel (element->hello); + if (element->hello != NULL) + GNUNET_CORE_notify_transmit_ready_cancel (element->hello); GNUNET_SCHEDULER_cancel (element->sched); GNUNET_free (element); }