-/* Copyright (C) 2013-2018 Open Information Security Foundation
+/* Copyright (C) 2013-2023 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
return NULL;
}
InspectionBufferSetupMulti(buffer, transforms, data, data_len);
+ buffer->flags = DETECT_CI_FLAGS_SINGLE;
SCReturnPtr(buffer, "InspectionBuffer");
}
if (buffer == NULL || buffer->inspect == NULL)
break;
- const bool match = DetectEngineContentInspection(de_ctx, det_ctx, s, engine->smd, NULL, f,
- buffer->inspect, buffer->inspect_len, buffer->inspect_offset,
- DETECT_CI_FLAGS_SINGLE, DETECT_ENGINE_CONTENT_INSPECTION_MODE_STATE);
+ const bool match = DetectEngineContentInspectionBuffer(de_ctx, det_ctx, s, engine->smd,
+ NULL, f, buffer, DETECT_ENGINE_CONTENT_INSPECTION_MODE_STATE);
if (match) {
return DETECT_ENGINE_INSPECT_SIG_MATCH;
}