From 304c711a27ddca7413eb6fcd38929e5dc01c0dd2 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 20 Mar 2015 19:23:09 +0100 Subject: [PATCH] detect-state: use f->protomap instead of FlowGetProtoMapping(f->proto) --- src/detect-engine-state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detect-engine-state.c b/src/detect-engine-state.c index 143551be86..8d17770a9d 100644 --- a/src/detect-engine-state.c +++ b/src/detect-engine-state.c @@ -454,7 +454,7 @@ int DeStateDetectStartDetection(ThreadVars *tv, DetectEngineCtx *de_ctx, continue; det_ctx->tx_id = tx_id; det_ctx->tx_id_set = 1; - DetectEngineAppInspectionEngine *engine = app_inspection_engine[FlowGetProtoMapping(f->proto)][alproto][direction]; + DetectEngineAppInspectionEngine *engine = app_inspection_engine[f->protomap][alproto][direction]; inspect_flags = 0; while (engine != NULL) { if (s->sm_lists[engine->sm_list] != NULL) { @@ -687,7 +687,7 @@ static int DoInspectItem(ThreadVars *tv, det_ctx->tx_id = inspect_tx_id; det_ctx->tx_id_set = 1; - DetectEngineAppInspectionEngine *engine = app_inspection_engine[FlowGetProtoMapping(f->proto)][alproto][(flags & STREAM_TOSERVER) ? 0 : 1]; + DetectEngineAppInspectionEngine *engine = app_inspection_engine[f->protomap][alproto][(flags & STREAM_TOSERVER) ? 0 : 1]; void *inspect_tx = AppLayerParserGetTx(f->proto, alproto, alstate, inspect_tx_id); if (inspect_tx == NULL) { RULE_PROFILING_END(det_ctx, s, 0, p);