aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/mq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/mq.c b/src/util/mq.c
index 5e40059c2..a8d6bec43 100644
--- a/src/util/mq.c
+++ b/src/util/mq.c
@@ -791,6 +791,9 @@ GNUNET_MQ_destroy (struct GNUNET_MQ_Handle *mq)
791 791
792 if (NULL != mq->current_envelope) 792 if (NULL != mq->current_envelope)
793 { 793 {
794 /* we can only discard envelopes that
795 * are not queued! */
796 mq->current_envelope->parent_queue = NULL;
794 GNUNET_MQ_discard (mq->current_envelope); 797 GNUNET_MQ_discard (mq->current_envelope);
795 mq->current_envelope = NULL; 798 mq->current_envelope = NULL;
796 } 799 }