aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2014-06-04 16:38:42 +0000
committerFlorian Dold <florian.dold@gmail.com>2014-06-04 16:38:42 +0000
commit42eda11ebcf7a40181bb74804f5ffb4c52bb1e14 (patch)
tree90351074e9be311a45f90c698efe8b5ce4a5297a /src/util
parentf286cd0b87731774b9448a0cdc82f7c8682c4efe (diff)
downloadgnunet-42eda11ebcf7a40181bb74804f5ffb4c52bb1e14.tar.gz
gnunet-42eda11ebcf7a40181bb74804f5ffb4c52bb1e14.zip
fix bug in mq destroy
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 }