diff options
author | Philipp Tölke <toelke@in.tum.de> | 2011-02-24 14:20:22 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2011-02-24 14:20:22 +0000 |
commit | fd05a2037c62f378febfb5ad8b4b6f2833b27d62 (patch) | |
tree | e94163619fbdd4de05ebc851653eecca754eae6c /src | |
parent | 2f3c9a825b2a9eb4491cf01b078ef758db6fb480 (diff) | |
download | gnunet-fd05a2037c62f378febfb5ad8b4b6f2833b27d62.tar.gz gnunet-fd05a2037c62f378febfb5ad8b4b6f2833b27d62.zip |
fix jump to NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/mesh_api.c | 4 |
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 | ||