diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-04-10 13:48:59 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-04-10 13:48:59 +0000 |
commit | 6f82843c095b2dd3df3adefc93bffed315887678 (patch) | |
tree | 098b7586c9dbbbec415f4a39f150bd7410391580 /src/mesh | |
parent | 37f390b6b602a7daca93915f626fc722782063a7 (diff) | |
download | gnunet-6f82843c095b2dd3df3adefc93bffed315887678.tar.gz gnunet-6f82843c095b2dd3df3adefc93bffed315887678.zip |
- don't use NULL connections on callback
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 4 |
1 files changed, 3 insertions, 1 deletions
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, | |||
694 | uint16_t type, int fwd, size_t size) | 694 | uint16_t type, int fwd, size_t size) |
695 | { | 695 | { |
696 | struct MeshTunnel3Queue *qt = cls; | 696 | struct MeshTunnel3Queue *qt = cls; |
697 | struct MeshTunnel3 *t; | ||
697 | 698 | ||
698 | LOG (GNUNET_ERROR_TYPE_DEBUG, "tun_message_sent\n"); | 699 | LOG (GNUNET_ERROR_TYPE_DEBUG, "tun_message_sent\n"); |
699 | 700 | ||
700 | GNUNET_assert (NULL != qt->cont); | 701 | GNUNET_assert (NULL != qt->cont); |
701 | qt->cont (qt->cont_cls, GMC_get_tunnel (c), qt, type, size); | 702 | t = NULL == c ? NULL : GMC_get_tunnel (c); |
703 | qt->cont (qt->cont_cls, t, qt, type, size); | ||
702 | GNUNET_free (qt); | 704 | GNUNET_free (qt); |
703 | } | 705 | } |
704 | 706 | ||