diff options
author | Bart Polot <bart@net.in.tum.de> | 2016-10-29 14:56:53 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2016-10-29 14:56:53 +0000 |
commit | a3735db333033ccefc95c56148ec3118bf7a0ccd (patch) | |
tree | 4c19e24d29137029032491d76e9a1f898fdb8e62 /src | |
parent | 655c015984f9e8d297aad007a737163bd6bd3996 (diff) | |
download | gnunet-a3735db333033ccefc95c56148ec3118bf7a0ccd.tar.gz gnunet-a3735db333033ccefc95c56148ec3118bf7a0ccd.zip |
Un-flag in_flight to avoid integer underflow in GNUNET_MQ_get_length
Diffstat (limited to 'src')
-rw-r--r-- | src/util/mq.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
445 | 445 | ||
446 | GNUNET_assert (0 < mq->queue_length); | 446 | GNUNET_assert (0 < mq->queue_length); |
447 | mq->queue_length--; | 447 | mq->queue_length--; |
448 | mq->in_flight = GNUNET_NO; | ||
448 | current_envelope = mq->current_envelope; | 449 | current_envelope = mq->current_envelope; |
449 | current_envelope->parent_queue = NULL; | 450 | current_envelope->parent_queue = NULL; |
450 | mq->current_envelope = NULL; | 451 | mq->current_envelope = NULL; |