From: Anders Grafström Date: Tue, 19 Aug 2008 04:29:57 +0000 (-0700) Subject: netfilter: ipt_addrtype: Fix matching of inverted destination address type X-Git-Tag: v2.6.27-rc4~39^2~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=46faec9858e8943226464dac50e205bf210d9174;p=linux-2.6-omap-h63xx.git netfilter: ipt_addrtype: Fix matching of inverted destination address type This patch fixes matching of inverted destination address type. Signed-off-by: Anders Grafström Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/ipv4/netfilter/ipt_addrtype.c b/net/ipv4/netfilter/ipt_addrtype.c index 49587a49722..462a22c9787 100644 --- a/net/ipv4/netfilter/ipt_addrtype.c +++ b/net/ipv4/netfilter/ipt_addrtype.c @@ -70,7 +70,7 @@ addrtype_mt_v1(const struct sk_buff *skb, const struct net_device *in, (info->flags & IPT_ADDRTYPE_INVERT_SOURCE); if (ret && info->dest) ret &= match_type(dev, iph->daddr, info->dest) ^ - (info->flags & IPT_ADDRTYPE_INVERT_DEST); + !!(info->flags & IPT_ADDRTYPE_INVERT_DEST); return ret; }