Improve app layer proto check.

remotes/origin/master-1.0.x
Victor Julien 15 years ago
parent 39cb1bdbda
commit b3c22cd512

@ -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;

Loading…
Cancel
Save