properly set executed tasks to NULL
authorChristian Grothoff <christian@grothoff.org>
Sat, 21 Jan 2017 23:02:09 +0000 (00:02 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sat, 21 Jan 2017 23:02:09 +0000 (00:02 +0100)
src/cadet/gnunet-service-cadet-new_channel.c

index a3ab07c3c83cd56c6d1a4fbc929430f7de82f3f4..6f57538acdcc1f18bd1521788188c3ba517fcacc 100644 (file)
@@ -439,6 +439,7 @@ send_channel_open (void *cls)
   struct GNUNET_CADET_ChannelOpenMessage msgcc;
   uint32_t options;
 
+  ch->retry_task = NULL;
   options = 0;
   if (ch->nobuffer)
     options |= GNUNET_CADET_OPTION_NOBUFFER;
@@ -1045,6 +1046,7 @@ retry_transmission (void *cls)
   struct CadetChannel *ch = cls;
   struct CadetReliableMessage *crm = ch->head_sent;
 
+  ch->retry_task = NULL;
   GNUNET_assert (NULL == crm->qe);
   crm->qe = GCT_send (ch->t,
                       &crm->data_message.header,