From: Victor Julien Date: Fri, 5 Feb 2021 21:01:55 +0000 (+0100) Subject: detect/dsize: set depth flag when applying dsize as depth X-Git-Tag: suricata-7.0.0-beta1~1493 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af104dd2233294df12953d25b4f3999025bb3fd2;p=thirdparty%2Fsuricata.git detect/dsize: set depth flag when applying dsize as depth --- diff --git a/src/detect-dsize.c b/src/detect-dsize.c index 81651ee41a..5879493df6 100644 --- a/src/detect-dsize.c +++ b/src/detect-dsize.c @@ -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);