detect: modbus list in engine

pull/2559/head
Victor Julien 9 years ago
parent 7f7d4296da
commit e94a7bddb3

@ -200,7 +200,7 @@ int DetectEngineInspectModbus(ThreadVars *tv,
DetectEngineCtx *de_ctx,
DetectEngineThreadCtx *det_ctx,
const Signature *s,
const SigMatch *smi,
const SigMatch *sm,
Flow *f,
uint8_t flags,
void *alstate,
@ -209,7 +209,6 @@ int DetectEngineInspectModbus(ThreadVars *tv,
{
SCEnter();
ModbusTransaction *tx = (ModbusTransaction *)txv;
SigMatch *sm = s->sm_lists[DETECT_SM_LIST_MODBUS_MATCH];
DetectModbus *modbus = (DetectModbus *) sm->ctx;
int ret = 0;

@ -202,6 +202,8 @@ int DetectEngineAppInspectionEngine2Signature(Signature *s)
case DETECT_SM_LIST_APP_EVENT:
case DETECT_SM_LIST_MODBUS_MATCH:
new_engine->sm = s->sm_lists[new_engine->sm_list];
s->sm_lists[new_engine->sm_list] = NULL;
s->sm_lists_tail[new_engine->sm_list] = NULL;

Loading…
Cancel
Save