Fix icmpv6 ip-only rule not firing. #363.

remotes/origin/master-1.2.x
Victor Julien 15 years ago
parent 517040c4af
commit 9324ed7b90

@ -1025,7 +1025,7 @@ void IPOnlyMatchPacket(ThreadVars *tv,
if (bitarray & 0x01) {
Signature *s = de_ctx->sig_array[u * 8 + i];
if (DetectProtoContainsProto(&s->proto, IP_GET_IPPROTO(p)) == 0) {
if (DetectProtoContainsProto(&s->proto, p->proto) == 0) {
SCLogDebug("proto didn't match");
continue;
}
@ -1046,13 +1046,6 @@ void IPOnlyMatchPacket(ThreadVars *tv,
continue;
}
}
} else {
if (!(s->flags & SIG_FLAG_DP_ANY)) {
continue;
}
if (!(s->flags & SIG_FLAG_SP_ANY)) {
continue;
}
}
if (!IPOnlyMatchCompatSMs(tv, det_ctx, s, p)) {

Loading…
Cancel
Save