summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAnders Grafström <grfstrm@users.sourceforge.net>2008-08-18 21:29:57 -0700
committerDavid S. Miller <davem@davemloft.net>2008-08-18 21:29:57 -0700
commit46faec9858e8943226464dac50e205bf210d9174 (patch)
tree548640a9a13c8c9d5c06289d2ea249e0195eb994 /net
parent8e0f36ec371ef4804da46d962d5272b3efb04481 (diff)
downloadop-kernel-dev-46faec9858e8943226464dac50e205bf210d9174.zip
op-kernel-dev-46faec9858e8943226464dac50e205bf210d9174.tar.gz
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 <grfstrm@users.sourceforge.net> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/netfilter/ipt_addrtype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ipt_addrtype.c b/net/ipv4/netfilter/ipt_addrtype.c
index 49587a4..462a22c 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;
}
OpenPOWER on IntegriCloud