aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/mesh_api.c
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-02-24 14:20:22 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-02-24 14:20:22 +0000
commitfd05a2037c62f378febfb5ad8b4b6f2833b27d62 (patch)
treee94163619fbdd4de05ebc851653eecca754eae6c /src/mesh/mesh_api.c
parent2f3c9a825b2a9eb4491cf01b078ef758db6fb480 (diff)
downloadgnunet-fd05a2037c62f378febfb5ad8b4b6f2833b27d62.tar.gz
gnunet-fd05a2037c62f378febfb5ad8b4b6f2833b27d62.zip
fix jump to NULL
Diffstat (limited to 'src/mesh/mesh_api.c')
-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