From: Bart Polot Date: Thu, 26 Jul 2012 15:57:47 +0000 (+0000) Subject: - do clear th ALWAYS after calling notify_cb X-Git-Tag: initial-import-from-subversion-38251~12316 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a478d5af288d63d59b2b1abde76b13b6b5d955a;p=oweals%2Fgnunet.git - do clear th ALWAYS after calling notify_cb --- diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 040b87d71..565e81d63 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -1207,6 +1207,7 @@ send_callback (void *cls, size_t size, void *buf) { LOG (GNUNET_ERROR_TYPE_DEBUG, "Received NULL send callback\n"); reconnect (h); + h->th = NULL; return 0; } tsize = 0; @@ -1316,6 +1317,7 @@ send_callback (void *cls, size_t size, void *buf) tsize += psize; } LOG (GNUNET_ERROR_TYPE_DEBUG, " total size: %u\n", tsize); + h->th = NULL; if (NULL != h->th_head) { int request = GNUNET_NO; @@ -1337,7 +1339,6 @@ send_callback (void *cls, size_t size, void *buf) break; } } - h->th = NULL; if (GNUNET_YES == request) {