From: Christian Grothoff Date: Tue, 19 Feb 2019 10:36:56 +0000 (+0100) Subject: additional santity check for MQ users X-Git-Tag: v0.11.0~63^2~32^2~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d76ca4e2e7e5c93ec92a4cf349ed62147a2b2148;p=oweals%2Fgnunet.git additional santity check for MQ users --- diff --git a/src/util/mq.c b/src/util/mq.c index d2f5add19..72ab8b72d 100644 --- a/src/util/mq.c +++ b/src/util/mq.c @@ -964,6 +964,7 @@ GNUNET_MQ_send_cancel (struct GNUNET_MQ_Envelope *ev) { /* complex case, we already started with transmitting the message using the callbacks. */ + GNUNET_assert (GNUNET_NO == mq->in_flight); GNUNET_assert (0 < mq->queue_length); mq->queue_length--; mq->cancel_impl (mq,