From: Bart Polot Date: Sat, 29 Oct 2016 14:56:53 +0000 (+0000) Subject: Un-flag in_flight to avoid integer underflow in GNUNET_MQ_get_length X-Git-Tag: initial-import-from-subversion-38251~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a3735db333033ccefc95c56148ec3118bf7a0ccd;p=oweals%2Fgnunet.git Un-flag in_flight to avoid integer underflow in GNUNET_MQ_get_length --- 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;