};
static InspectionBuffer *MQTTSubscribeTopicGetData(DetectEngineThreadCtx *det_ctx,
- const DetectEngineTransforms *transforms,
- Flow *f, struct MQTTSubscribeTopicGetDataArgs *cbdata, int list_id, bool first)
+ const DetectEngineTransforms *transforms, Flow *f,
+ struct MQTTSubscribeTopicGetDataArgs *cbdata, 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;
while ((subscribe_topic_match_limit == 0) || local_id < subscribe_topic_match_limit) {
struct MQTTSubscribeTopicGetDataArgs cbdata = { local_id, txv, };
- InspectionBuffer *buffer = MQTTSubscribeTopicGetData(det_ctx,
- transforms, f, &cbdata, engine->sm_list, false);
+ InspectionBuffer *buffer =
+ MQTTSubscribeTopicGetData(det_ctx, transforms, f, &cbdata, engine->sm_list);
if (buffer == NULL || buffer->inspect == NULL)
break;
uint32_t local_id = 0;
while ((subscribe_topic_match_limit == 0) || local_id < subscribe_topic_match_limit) {
struct MQTTSubscribeTopicGetDataArgs cbdata = { local_id, txv };
- InspectionBuffer *buffer = MQTTSubscribeTopicGetData(det_ctx, ctx->transforms,
- f, &cbdata, list_id, true);
+ InspectionBuffer *buffer =
+ MQTTSubscribeTopicGetData(det_ctx, ctx->transforms, f, &cbdata, list_id);
if (buffer == NULL)
break;
};
static InspectionBuffer *MQTTUnsubscribeTopicGetData(DetectEngineThreadCtx *det_ctx,
- const DetectEngineTransforms *transforms,
- Flow *f, struct MQTTUnsubscribeTopicGetDataArgs *cbdata, int list_id, bool first)
+ const DetectEngineTransforms *transforms, Flow *f,
+ struct MQTTUnsubscribeTopicGetDataArgs *cbdata, 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;
while ((unsubscribe_topic_match_limit == 0) || local_id < unsubscribe_topic_match_limit) {
struct MQTTUnsubscribeTopicGetDataArgs cbdata = { local_id, txv, };
- InspectionBuffer *buffer = MQTTUnsubscribeTopicGetData(det_ctx,
- transforms, f, &cbdata, engine->sm_list, false);
+ InspectionBuffer *buffer =
+ MQTTUnsubscribeTopicGetData(det_ctx, transforms, f, &cbdata, engine->sm_list);
if (buffer == NULL || buffer->inspect == NULL)
break;
uint32_t local_id = 0;
while ((unsubscribe_topic_match_limit == 0) || local_id < unsubscribe_topic_match_limit) {
struct MQTTUnsubscribeTopicGetDataArgs cbdata = { local_id, txv };
- InspectionBuffer *buffer = MQTTUnsubscribeTopicGetData(det_ctx, ctx->transforms,
- f, &cbdata, list_id, true);
+ InspectionBuffer *buffer =
+ MQTTUnsubscribeTopicGetData(det_ctx, ctx->transforms, f, &cbdata, list_id);
if (buffer == NULL)
break;