]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: skip duplicate nopacket inspect check
authorVictor Julien <vjulien@oisf.net>
Wed, 12 Mar 2025 11:05:41 +0000 (12:05 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 7 Apr 2025 20:04:13 +0000 (22:04 +0200)
src/detect.c

index 3cfe50bc7ec575876c74015a1ebe4901331a4c2b..800db969c80910f575311a43375affe06b908559 100644 (file)
@@ -110,12 +110,6 @@ static void DetectRun(ThreadVars *th_v,
                     : "noflow",
             PktSrcToString(p->pkt_src));
 
-    /* bail early if packet should not be inspected */
-    if (p->flags & PKT_NOPACKET_INSPECTION) {
-        /* nothing to do */
-        SCReturn;
-    }
-
     /* Load the Packet's flow early, even though it might not be needed.
      * Mark as a constant pointer, although the flow itself can change. */
     Flow * const pflow = p->flow;