diff --git a/src/detect-engine.c b/src/detect-engine.c index f76e3e22a3..a61d141695 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