|
|
|
|
@ -60,7 +60,7 @@ static int DetectQuicCyuStringSetup(DetectEngineCtx *de_ctx, Signature *s, const
|
|
|
|
|
|
|
|
|
|
static InspectionBuffer *QuicStringGetData(DetectEngineThreadCtx *det_ctx,
|
|
|
|
|
const DetectEngineTransforms *transforms, Flow *f, struct QuicStringGetDataArgs *cbdata,
|
|
|
|
|
int list_id, bool first)
|
|
|
|
|
int list_id)
|
|
|
|
|
{
|
|
|
|
|
SCEnter();
|
|
|
|
|
|
|
|
|
|
@ -68,7 +68,7 @@ static InspectionBuffer *QuicStringGetData(DetectEngineThreadCtx *det_ctx,
|
|
|
|
|
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;
|
|
|
|
|
@ -99,7 +99,7 @@ static uint8_t DetectEngineInspectQuicString(DetectEngineCtx *de_ctx,
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
@ -140,8 +140,7 @@ static void PrefilterTxQuicString(DetectEngineThreadCtx *det_ctx, const void *pe
|
|
|
|
|
// 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;
|
|
|
|
|
|
|
|
|
|
|