From 689ac97d7225fd43b64c103034b1fdf63fa4d324 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Mon, 13 Sep 2021 12:27:51 +0200 Subject: [PATCH] inspect: debug validation to ensure correct argument --- src/detect-engine.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/detect-engine.c b/src/detect-engine.c index f76e3e22a..a61d14169 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -1093,6 +1093,7 @@ void InspectionBufferSetup(DetectEngineThreadCtx *det_ctx, const int list_id, { #ifdef DEBUG_VALIDATION DEBUG_VALIDATE_BUG_ON(buffer->multi); + DEBUG_VALIDATE_BUG_ON(buffer != InspectionBufferGet(det_ctx, list_id)); #endif if (buffer->inspect == NULL) { #ifdef UNITTESTS -- 2.39.2