From: Bart Polot Date: Mon, 30 Jul 2012 15:04:05 +0000 (+0000) Subject: - timeout fix by harsha X-Git-Tag: initial-import-from-subversion-38251~12286 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b1a6a132e3a7478a4c06fe489a54a7a59a9e7837;p=oweals%2Fgnunet.git - timeout fix by harsha --- diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 8ac1efa61..516e877e8 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -588,6 +588,7 @@ remove_peer_from_tunnel (struct GNUNET_MESH_Peer *p) /** * Notify client that the transmission has timed out + * * @param cls closure * @param tc task context */ @@ -601,6 +602,7 @@ timeout_transmission (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_CONTAINER_DLL_remove (mesh->th_head, mesh->th_tail, th); if (GNUNET_YES == th_is_payload (th)) th->notify (th->notify_cls, 0, NULL); + th->tunnel->packet_size = 0; GNUNET_free (th); if ((NULL == mesh->th_head) && (NULL != mesh->th)) {