projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ack florian
[oweals/gnunet.git]
/
src
/
util
/
mq.c
diff --git
a/src/util/mq.c
b/src/util/mq.c
index b971fdefd95214787d73a127c3fa5c978bc8b548..b22d97f593097ff0ceb419925ec75c572b51c581 100644
(file)
--- a/
src/util/mq.c
+++ b/
src/util/mq.c
@@
-1096,7
+1096,10
@@
GNUNET_MQ_get_current_envelope (struct GNUNET_MQ_Handle *mq)
struct GNUNET_MQ_Envelope *
GNUNET_MQ_get_last_envelope (struct GNUNET_MQ_Handle *mq)
{
- return mq->envelope_tail;
+ if (NULL != mq->envelope_tail)
+ return mq->envelope_tail;
+
+ return mq->current_envelope;
}