static InspectionBuffer *QuicHashGetData(DetectEngineThreadCtx *det_ctx,
const DetectEngineTransforms *transforms, Flow *f, struct QuicHashGetDataArgs *cbdata,
- int list_id, bool first)
+ int list_id)
{
SCEnter();
InspectionBufferMultipleForListGet(det_ctx, list_id, cbdata->local_id);
if (buffer == NULL)
return NULL;
- if (!first && buffer->inspect != NULL)
+ if (buffer->initialized)
return buffer;
const uint8_t *data;
txv,
};
InspectionBuffer *buffer =
- QuicHashGetData(det_ctx, transforms, f, &cbdata, engine->sm_list, false);
+ QuicHashGetData(det_ctx, transforms, f, &cbdata, engine->sm_list);
if (buffer == NULL || buffer->inspect == NULL)
break;
// loop until we get a NULL
struct QuicHashGetDataArgs cbdata = { local_id, txv };
- InspectionBuffer *buffer =
- QuicHashGetData(det_ctx, ctx->transforms, f, &cbdata, list_id, true);
+ InspectionBuffer *buffer = QuicHashGetData(det_ctx, ctx->transforms, f, &cbdata, list_id);
if (buffer == NULL)
break;
static InspectionBuffer *QuicStringGetData(DetectEngineThreadCtx *det_ctx,
const DetectEngineTransforms *transforms, Flow *f, struct QuicStringGetDataArgs *cbdata,
- int list_id, bool first)
+ int list_id)
{
SCEnter();
InspectionBufferMultipleForListGet(det_ctx, list_id, cbdata->local_id);
if (buffer == NULL)
return NULL;
- if (!first && buffer->inspect != NULL)
+ if (buffer->initialized)
return buffer;
const uint8_t *data;
txv,
};
InspectionBuffer *buffer =
- QuicStringGetData(det_ctx, transforms, f, &cbdata, engine->sm_list, false);
+ QuicStringGetData(det_ctx, transforms, f, &cbdata, engine->sm_list);
if (buffer == NULL || buffer->inspect == NULL)
break;
// loop until we get a NULL
struct QuicStringGetDataArgs cbdata = { local_id, txv };
- InspectionBuffer *buffer =
- QuicStringGetData(det_ctx, ctx->transforms, f, &cbdata, list_id, true);
+ InspectionBuffer *buffer = QuicStringGetData(det_ctx, ctx->transforms, f, &cbdata, list_id);
if (buffer == NULL)
break;