From b3c22cd5128fbb95133061562712a23ebbe72a11 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 30 Jun 2010 22:48:22 +0200 Subject: [PATCH] Improve app layer proto check. --- src/detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect.c b/src/detect.c index 280033ea2b..fdd862cf4d 100644 --- a/src/detect.c +++ b/src/detect.c @@ -456,7 +456,7 @@ static void SigMatchSignaturesBuildMatchArray(DetectEngineCtx *de_ctx, } /* if the sig has alproto and the session as well they should match */ - if (s->alproto != ALPROTO_UNKNOWN && alproto != ALPROTO_UNKNOWN) { + if (s->alproto != ALPROTO_UNKNOWN) { if (s->alproto != alproto) { SCLogDebug("alproto mismatch"); continue;