commit a3735db333033ccefc95c56148ec3118bf7a0ccd
parent 655c015984f9e8d297aad007a737163bd6bd3996
Author: Bart Polot <bart@net.in.tum.de>
Date: Sat, 29 Oct 2016 14:56:53 +0000
Un-flag in_flight to avoid integer underflow in GNUNET_MQ_get_length
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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;