aboutsummaryrefslogtreecommitdiff
path: root/src/util/mq.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2016-10-29 14:56:53 +0000
committerBart Polot <bart@net.in.tum.de>2016-10-29 14:56:53 +0000
commita3735db333033ccefc95c56148ec3118bf7a0ccd (patch)
tree4c19e24d29137029032491d76e9a1f898fdb8e62 /src/util/mq.c
parent655c015984f9e8d297aad007a737163bd6bd3996 (diff)
Un-flag in_flight to avoid integer underflow in GNUNET_MQ_get_length
Diffstat (limited to 'src/util/mq.c')
-rw-r--r--src/util/mq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/mq.c b/src/util/mq.c
index cb380de430..ae13ff6015 100644
--- a/src/util/mq.c
+++ b/src/util/mq.c
@@ -445,6 +445,7 @@ GNUNET_MQ_impl_send_continue (struct GNUNET_MQ_Handle *mq)
GNUNET_assert (0 < mq->queue_length);
mq->queue_length--;
+ mq->in_flight = GNUNET_NO;
current_envelope = mq->current_envelope;
current_envelope->parent_queue = NULL;
mq->current_envelope = NULL;