From af104dd2233294df12953d25b4f3999025bb3fd2 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 5 Feb 2021 22:01:55 +0100 Subject: [PATCH] detect/dsize: set depth flag when applying dsize as depth --- src/detect-dsize.c | 1 + 1 file changed, 1 insertion(+) 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);