From: Victor Julien Date: Thu, 25 Aug 2022 10:39:10 +0000 (+0200) Subject: packetpool: ifdef debug check X-Git-Tag: suricata-7.0.0-beta1~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa09d5f5562e92a60685e084f18e81c1b127c566;p=thirdparty%2Fsuricata.git packetpool: ifdef debug check --- diff --git a/src/tmqh-packetpool.c b/src/tmqh-packetpool.c index c7b5586259..a07edd127d 100644 --- a/src/tmqh-packetpool.c +++ b/src/tmqh-packetpool.c @@ -451,10 +451,12 @@ void TmqhOutputPacketpool(ThreadVars *t, Packet *p) SCLogDebug("tunnel stuff done, move on (proot %d)", proot); } +#ifdef DEBUG_VALIDATION /* Check that the drop reason has been set, if we have a drop */ if (PacketTestAction(p, ACTION_DROP)) { DEBUG_VALIDATE_BUG_ON((p)->drop_reason == PKT_DROP_REASON_NOT_SET); } +#endif /* we're done with the tunnel root now as well */ if (proot == true) {