summaryrefslogtreecommitdiffstats
path: root/src/detect-http-server-body.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-24 01:56:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-24 01:56:35 +0000
commitea7b101b409c45955f5d5446bb3bfdf7758b9226 (patch)
treeaca5d4fbf94bc524c392a5dd9cf4571f3a29ccb8 /src/detect-http-server-body.c
parentAdding upstream version 1:7.0.4. (diff)
downloadsuricata-upstream.tar.xz
suricata-upstream.zip
Adding upstream version 1:7.0.5.upstream/1%7.0.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/detect-http-server-body.c')
-rw-r--r--src/detect-http-server-body.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/detect-http-server-body.c b/src/detect-http-server-body.c
index 98f0ec5..28833a8 100644
--- a/src/detect-http-server-body.c
+++ b/src/detect-http-server-body.c
@@ -124,6 +124,9 @@ static int DetectHttpServerBodySetupSticky(DetectEngineCtx *de_ctx, Signature *s
return -1;
if (DetectSignatureSetAppProto(s, ALPROTO_HTTP) < 0)
return -1;
+ // file data is on both directions, but we only take the one to client here
+ s->flags |= SIG_FLAG_TOCLIENT;
+ s->flags &= ~SIG_FLAG_TOSERVER;
return 0;
}