From fd05a2037c62f378febfb5ad8b4b6f2833b27d62 Mon Sep 17 00:00:00 2001 From: Philipp Tölke Date: Thu, 24 Feb 2011 14:20:22 +0000 Subject: fix jump to NULL --- src/mesh/mesh_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3