gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r33028 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r33028 - gnunet/src/mesh
Date: Thu, 10 Apr 2014 15:48:59 +0200

Author: bartpolot
Date: 2014-04-10 15:48:59 +0200 (Thu, 10 Apr 2014)
New Revision: 33028

Modified:
   gnunet/src/mesh/gnunet-service-mesh_tunnel.c
Log:
- don't use NULL connections on callback

Modified: gnunet/src/mesh/gnunet-service-mesh_tunnel.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2014-04-10 13:44:11 UTC 
(rev 33027)
+++ gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2014-04-10 13:48:59 UTC 
(rev 33028)
@@ -694,11 +694,13 @@
               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);
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]