inspect: debug validation to ensure correct argument

pull/6620/head
Philippe Antoine 4 years ago committed by Victor Julien
parent c3339c853e
commit 689ac97d72

@ -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

Loading…
Cancel
Save