]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
packetpool: ifdef debug check
authorVictor Julien <vjulien@oisf.net>
Thu, 25 Aug 2022 10:39:10 +0000 (12:39 +0200)
committerVictor Julien <vjulien@oisf.net>
Thu, 25 Aug 2022 10:39:10 +0000 (12:39 +0200)
src/tmqh-packetpool.c

index c7b5586259396c20a275d01ebf9abd71d2b72697..a07edd127daf4eb2b5f06555fcafe06ebac2fd55 100644 (file)
@@ -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) {