From: Victor Julien Date: Thu, 13 Dec 2018 10:16:04 +0000 (+0100) Subject: detect/file-data: fix enabling http body tracking X-Git-Tag: suricata-4.0.7~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afc9ba5d87e71f46a40ba1388b9df4dae3e4d37e;p=thirdparty%2Fsuricata.git detect/file-data: fix enabling http body tracking --- diff --git a/src/detect-file-data.c b/src/detect-file-data.c index febccef938..85da2478dc 100644 --- a/src/detect-file-data.c +++ b/src/detect-file-data.c @@ -130,7 +130,7 @@ static int DetectFiledataSetup (DetectEngineCtx *de_ctx, Signature *s, const cha static void DetectFiledataSetupCallback(Signature *s) { if (s->alproto == ALPROTO_HTTP || s->alproto == ALPROTO_UNKNOWN) { - AppLayerHtpEnableRequestBodyCallback(); + AppLayerHtpEnableResponseBodyCallback(); } if (s->alproto == ALPROTO_HTTP) { s->mask |= SIG_MASK_REQUIRE_HTTP_STATE;