aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-12-15 07:18:12 +0000
committerBart Polot <bart@net.in.tum.de>2014-12-15 07:18:12 +0000
commit7d52e8c4206f59e57d493d0405592368c0180e99 (patch)
treed219633417d2a3c092d057ee0d840b0cf9f9587e /src/cadet
parent53b57c8ca7f4ed7427d90b5df4b0ffb8009ae4e9 (diff)
- clear core handle to avoid shutdown crash
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/gnunet-service-cadet_peer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c
index 2674e72044..298abbe8b7 100644
--- a/src/cadet/gnunet-service-cadet_peer.c
+++ b/src/cadet/gnunet-service-cadet_peer.c
@@ -1063,6 +1063,7 @@ queue_send (void *cls, size_t size, void *buf)
{
LOG (GNUNET_ERROR_TYPE_DEBUG, "Buffer size 0.\n");
peer->tmt_time.abs_value_us = 0;
+ peer->core_transmit = NULL;
return 0;
}
@@ -1084,7 +1085,6 @@ queue_send (void *cls, size_t size, void *buf)
GNUNET_STRINGS_relative_time_to_string (core_wait_time, GNUNET_NO));
peer->tmt_time.abs_value_us = 0;
-
/* Copy all possible messages to the core buffer */
while (NULL != queue && rest >= queue->size)
{