aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesh/mesh_api.c4
1 files changed, 2 insertions, 2 deletions
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)
226 { 226 {
227 /* disconnect tunnels */ 227 /* disconnect tunnels */
228 /* outbound tunnels */ 228 /* outbound tunnels */
229 if (telement->tunnel.connect_handler != NULL) 229 if (telement->tunnel.connect_handler != NULL && NULL != telement->tunnel.disconnect_handler)
230 telement->tunnel.disconnect_handler (telement->tunnel.handler_cls, 230 telement->tunnel.disconnect_handler (telement->tunnel.handler_cls,
231 peer); 231 peer);
232 /* inbound tunnels */ 232 /* inbound tunnels */
233 else 233 else if (NULL != handle->cleaner)
234 handle->cleaner (handle->cls, &telement->tunnel, 234 handle->cleaner (handle->cls, &telement->tunnel,
235 &telement->tunnel.ctx); 235 &telement->tunnel.ctx);
236 236