From f293823ab3f169ca07eb7e587a01737e15041b8d Mon Sep 17 00:00:00 2001 From: Jeff Lucovsky Date: Thu, 14 Sep 2023 10:29:17 -0400 Subject: [PATCH] detect: Count buffer id once This commit removes a second, unnecessary increment of the de_ctx buffer id. Issue: 5211 --- src/detect-engine.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/detect-engine.c b/src/detect-engine.c index 3810cb0a7a..009741c503 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -1893,7 +1893,6 @@ int DetectEngineBufferTypeGetByIdTransforms( BUG_ON(HashListTableAdd(de_ctx->buffer_type_hash_name, (void *)map, 0) != 0); BUG_ON(HashListTableAdd(de_ctx->buffer_type_hash_id, (void *)map, 0) != 0); SCLogDebug("buffer %s registered with id %d, parent %d", map->name, map->id, map->parent_id); - de_ctx->buffer_type_id++; if (map->frame) { DetectFrameInspectEngineCopy(de_ctx, map->parent_id, map->id, &map->transforms); -- 2.47.2