static InspectionBuffer *IkeVendorGetData(DetectEngineThreadCtx *det_ctx,
const DetectEngineTransforms *transforms, Flow *f, struct IkeVendorGetDataArgs *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;
uint32_t local_id = 0;
while (1) {
struct IkeVendorGetDataArgs cbdata = { local_id, txv };
- InspectionBuffer *buffer =
- IkeVendorGetData(det_ctx, ctx->transforms, f, &cbdata, list_id, true);
+ InspectionBuffer *buffer = IkeVendorGetData(det_ctx, ctx->transforms, f, &cbdata, list_id);
if (buffer == NULL)
break;
txv,
};
InspectionBuffer *buffer =
- IkeVendorGetData(det_ctx, transforms, f, &cbdata, engine->sm_list, false);
+ IkeVendorGetData(det_ctx, transforms, f, &cbdata, engine->sm_list);
if (buffer == NULL || buffer->inspect == NULL)
break;