]> git.hungrycats.org Git - linux/commitdiff
[NETFILTER]: ipt_multiport invert fix
authorMarcus Sundberg <marcus@ingate.com>
Thu, 9 Jan 2003 16:47:46 +0000 (08:47 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Thu, 9 Jan 2003 16:47:46 +0000 (08:47 -0800)
net/ipv4/netfilter/ipt_multiport.c

index 1d9b3c395434965413b2c0e3862721c58fb0de44..5efaf9df61b088651a1d1e9ca91157124edd7945 100644 (file)
@@ -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