]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/dsize: set depth flag when applying dsize as depth
authorVictor Julien <victor@inliniac.net>
Fri, 5 Feb 2021 21:01:55 +0000 (22:01 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 1 Sep 2021 06:33:52 +0000 (08:33 +0200)
src/detect-dsize.c

index 81651ee41aa2a8a135223097dfef9764244f4057..5879493df67b495734d585488a2ef135641fc249 100644 (file)
@@ -463,6 +463,7 @@ void SigParseApplyDsizeToContent(Signature *s)
             }
 
             if (cd->depth == 0 || cd->depth >= dsize) {
+                cd->flags |= DETECT_CONTENT_DEPTH;
                 cd->depth = (uint16_t)dsize;
                 SCLogDebug("updated %u, content %u to have depth %u "
                         "because of dsize.", s->id, cd->id, cd->depth);