diff --git a/src/detect-engine-iponly.c b/src/detect-engine-iponly.c index d76cf6a0e0..fd520d84a2 100644 --- a/src/detect-engine-iponly.c +++ b/src/detect-engine-iponly.c @@ -1030,7 +1030,7 @@ void IPOnlyMatchPacket(ThreadVars *tv, continue; } - if (DetectProtoContainsProto(&s->proto, p->proto) == 0) { + if (DetectProtoContainsProto(&s->proto, IP_GET_IPPROTO(p)) == 0) { SCLogDebug("proto didn't match"); continue; }