detect: Count buffer id once

This commit removes a second, unnecessary increment of the de_ctx buffer
id.

Issue: 5211
pull/9492/head
Jeff Lucovsky 1 year ago committed by Victor Julien
parent 2fa0fac289
commit f293823ab3

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

Loading…
Cancel
Save