From 6c8ca769420d95250cbe93fd08afa86d97495840 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 12 Mar 2014 15:07:16 +0100 Subject: [PATCH] detect state: remove alproto check for AMATCH Not all AMATCHes set a alproto. --- src/detect-engine-state.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/detect-engine-state.c b/src/detect-engine-state.c index 4a45df4a24..0f757f3043 100644 --- a/src/detect-engine-state.c +++ b/src/detect-engine-state.c @@ -626,8 +626,7 @@ void DeStateDetectContinueDetection(ThreadVars *tv, DetectEngineCtx *de_ctx, KEYWORD_PROFILING_SET_LIST(det_ctx, DETECT_SM_LIST_AMATCH); for (sm = item->nm; sm != NULL; sm = sm->next) { - if (sigmatch_table[sm->type].AppLayerMatch != NULL && - (alproto == s->alproto || alproto == ALPROTO_SMB || alproto == ALPROTO_SMB2)) + if (sigmatch_table[sm->type].AppLayerMatch != NULL) { if (alproto == ALPROTO_SMB || alproto == ALPROTO_SMB2) { smb_state = (SMBState *)alstate;