From 4810b4cceb07ca6a325376bfcc4e5abdb1586685 Mon Sep 17 00:00:00 2001 From: Philipp Tölke Date: Wed, 21 Sep 2011 07:44:10 +0000 Subject: we do not want to crash if somebody leaves the net --- src/mesh/mesh_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3