diff options
-rw-r--r-- | src/mesh/mesh_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
336 | tail); | 336 | tail); |
337 | GNUNET_free (tail); | 337 | GNUNET_free (tail); |
338 | } | 338 | } |
339 | GNUNET_CORE_notify_transmit_ready_cancel (element->hello); | 339 | if (element->hello != NULL) |
340 | GNUNET_CORE_notify_transmit_ready_cancel (element->hello); | ||
340 | GNUNET_SCHEDULER_cancel (element->sched); | 341 | GNUNET_SCHEDULER_cancel (element->sched); |
341 | GNUNET_free (element); | 342 | GNUNET_free (element); |
342 | } | 343 | } |