From 6f82843c095b2dd3df3adefc93bffed315887678 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 10 Apr 2014 13:48:59 +0000 Subject: - don't use NULL connections on callback --- src/mesh/gnunet-service-mesh_tunnel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 30e960ead..7e3717f0b 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c @@ -694,11 +694,13 @@ tun_message_sent (void *cls, uint16_t type, int fwd, size_t size) { struct MeshTunnel3Queue *qt = cls; + struct MeshTunnel3 *t; LOG (GNUNET_ERROR_TYPE_DEBUG, "tun_message_sent\n"); GNUNET_assert (NULL != qt->cont); - qt->cont (qt->cont_cls, GMC_get_tunnel (c), qt, type, size); + t = NULL == c ? NULL : GMC_get_tunnel (c); + qt->cont (qt->cont_cls, t, qt, type, size); GNUNET_free (qt); } -- cgit v1.2.3