From a3735db333033ccefc95c56148ec3118bf7a0ccd Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Sat, 29 Oct 2016 14:56:53 +0000 Subject: [PATCH] Un-flag in_flight to avoid integer underflow in GNUNET_MQ_get_length --- src/util/mq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/mq.c b/src/util/mq.c index cb380de43..ae13ff601 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; -- 2.25.1