summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-communicator-udp.c
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2020-12-08 10:56:46 +0100
committert3sserakt <t3ss@posteo.de>2020-12-08 10:56:46 +0100
commit7a8531c1245983ab09a5bf146c9258321f7fa61a (patch)
treea5ac229e4667866340a685c7eb6fa19b259c363f /src/transport/gnunet-communicator-udp.c
parent6e3ca264f69ea03520c5855161d1c8487c1e4e01 (diff)
parent7ce054864a112f459a75ab542f844a8be0e6c47c (diff)
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'src/transport/gnunet-communicator-udp.c')
-rw-r--r--src/transport/gnunet-communicator-udp.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c
index 4a91a70a5..1f87ba6d4 100644
--- a/src/transport/gnunet-communicator-udp.c
+++ b/src/transport/gnunet-communicator-udp.c
@@ -1741,8 +1741,7 @@ static void
kce_generate_cb (void *cls)
{
struct SharedSecret *ss = cls;
-
-
+ kce_task = NULL;
if (((GNUNET_NO == ss->sender->rekeying) && (ss->sender->acks_available <
KCN_TARGET) ) ||
@@ -1776,6 +1775,7 @@ static void
kce_generate_rekey_cb (void *cls)
{
struct SharedSecret *ss = cls;
+ kce_task_rekey = NULL;
if (NULL == kce_task)
{
@@ -3261,6 +3261,21 @@ do_shutdown (void *cls)
GNUNET_SCHEDULER_cancel (broadcast_task);
broadcast_task = NULL;
}
+ if (NULL != kce_task_rekey)
+ {
+ GNUNET_SCHEDULER_cancel (kce_task_rekey);
+ kce_task_rekey = NULL;
+ }
+ if (NULL != kce_task)
+ {
+ GNUNET_SCHEDULER_cancel (kce_task);
+ kce_task = NULL;
+ }
+ if (NULL != timeout_task)
+ {
+ GNUNET_SCHEDULER_cancel (timeout_task);
+ timeout_task = NULL;
+ }
if (NULL != read_task)
{
GNUNET_SCHEDULER_cancel (read_task);