From: Victor Julien Date: Wed, 12 Mar 2014 14:07:16 +0000 (+0100) Subject: detect state: remove alproto check for AMATCH X-Git-Tag: suricata-2.0.1rc1~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c8ca769420d95250cbe93fd08afa86d97495840;p=thirdparty%2Fsuricata.git detect state: remove alproto check for AMATCH Not all AMATCHes set a alproto. --- 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;