From 9efdba058dc055c298a844c51f07ee644ddb19da Mon Sep 17 00:00:00 2001 From: Marcus Sundberg Date: Thu, 9 Jan 2003 08:47:46 -0800 Subject: [PATCH] [NETFILTER]: ipt_multiport invert fix --- net/ipv4/netfilter/ipt_multiport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/netfilter/ipt_multiport.c b/net/ipv4/netfilter/ipt_multiport.c index 1d9b3c395434..5efaf9df61b0 100644 --- a/net/ipv4/netfilter/ipt_multiport.c +++ b/net/ipv4/netfilter/ipt_multiport.c @@ -78,7 +78,7 @@ checkentry(const char *tablename, /* Must specify proto == TCP/UDP, no unknown flags or bad count */ return (ip->proto == IPPROTO_TCP || ip->proto == IPPROTO_UDP) - && !(ip->flags & IPT_INV_PROTO) + && !(ip->invflags & IPT_INV_PROTO) && matchsize == IPT_ALIGN(sizeof(struct ipt_multiport)) && (multiinfo->flags == IPT_MULTIPORT_SOURCE || multiinfo->flags == IPT_MULTIPORT_DESTINATION -- 2.39.5