projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e29e9e
)
[NETFILTER]: xt_conntrack: fix missing boolean clamping
author
Jan Engelhardt
<jengelh@computergmbh.de>
Wed, 27 Feb 2008 20:09:05 +0000
(12:09 -0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 27 Feb 2008 20:09:05 +0000
(12:09 -0800)
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_conntrack.c
patch
|
blob
|
history
diff --git
a/net/netfilter/xt_conntrack.c
b/net/netfilter/xt_conntrack.c
index 85330856a29c52065771c413737f958639d7cd20..dd192ac74b4aebfabc39bdb179d5b6dc608dd783 100644
(file)
--- a/
net/netfilter/xt_conntrack.c
+++ b/
net/netfilter/xt_conntrack.c
@@
-231,7
+231,7
@@
conntrack_mt(const struct sk_buff *skb, const struct net_device *in,
if (test_bit(IPS_DST_NAT_BIT, &ct->status))
statebit |= XT_CONNTRACK_STATE_DNAT;
}
- if ((info->state_mask & statebit) ^
+ if (
!!
(info->state_mask & statebit) ^
!(info->invert_flags & XT_CONNTRACK_STATE))
return false;
}