From ee66a7246fc2db41c53d1934e2f515dabf725bf4 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 23 Sep 2023 07:43:54 +0200 Subject: [PATCH] detect-engine: minor content inspection cleanup --- src/detect-engine.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/detect-engine.c b/src/detect-engine.c index 4cf145df6e..c078b824d0 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -2257,10 +2257,6 @@ int DetectEngineInspectPktBufferGeneric( return DETECT_ENGINE_INSPECT_SIG_NO_MATCH; } - const uint32_t data_len = buffer->inspect_len; - const uint8_t *data = buffer->inspect; - const uint64_t offset = 0; - uint8_t ci_flags = DETECT_CI_FLAGS_START|DETECT_CI_FLAGS_END; ci_flags |= buffer->flags; @@ -2270,11 +2266,9 @@ int DetectEngineInspectPktBufferGeneric( /* Inspect all the uricontents fetched on each * transaction at the app layer */ - int r = DetectEngineContentInspection(det_ctx->de_ctx, det_ctx, - s, engine->smd, - p, p->flow, - (uint8_t *)data, data_len, offset, ci_flags, - DETECT_ENGINE_CONTENT_INSPECTION_MODE_HEADER); + int r = DetectEngineContentInspection(det_ctx->de_ctx, det_ctx, s, engine->smd, p, p->flow, + buffer->inspect, buffer->inspect_len, 0, ci_flags, + DETECT_ENGINE_CONTENT_INSPECTION_MODE_HEADER); if (r == 1) { return DETECT_ENGINE_INSPECT_SIG_MATCH; } else { -- 2.47.2