From: Philipp Tölke Date: Thu, 24 Feb 2011 14:20:22 +0000 (+0000) Subject: fix jump to NULL X-Git-Tag: initial-import-from-subversion-38251~19053 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fd05a2037c62f378febfb5ad8b4b6f2833b27d62;p=oweals%2Fgnunet.git fix jump to NULL --- diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 82fb75c51..3421e2c6f 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -226,11 +226,11 @@ core_disconnect (void *cls, const struct GNUNET_PeerIdentity *peer) { /* disconnect tunnels */ /* outbound tunnels */ - if (telement->tunnel.connect_handler != NULL) + if (telement->tunnel.connect_handler != NULL && NULL != telement->tunnel.disconnect_handler) telement->tunnel.disconnect_handler (telement->tunnel.handler_cls, peer); /* inbound tunnels */ - else + else if (NULL != handle->cleaner) handle->cleaner (handle->cls, &telement->tunnel, &telement->tunnel.ctx);