projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
-fix time assertion introduce in last patch
[oweals/gnunet.git]
/
src
/
util
/
mq.c
diff --git
a/src/util/mq.c
b/src/util/mq.c
index 5e40059c24090348ec4c4be6e3d73bf248b8a99d..a8d6bec436b9e3f9470991ecbbd505fef67a5175 100644
(file)
--- a/
src/util/mq.c
+++ b/
src/util/mq.c
@@
-791,6
+791,9
@@
GNUNET_MQ_destroy (struct GNUNET_MQ_Handle *mq)
if (NULL != mq->current_envelope)
{
+ /* we can only discard envelopes that
+ * are not queued! */
+ mq->current_envelope->parent_queue = NULL;
GNUNET_MQ_discard (mq->current_envelope);
mq->current_envelope = NULL;
}