diff options
author | David S. Miller <davem@davemloft.net> | 2010-11-12 11:04:26 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-12 11:04:26 -0800 |
commit | 7c13a0d9a1ac6875f6380763b947f4a5a016605f (patch) | |
tree | fbf7b41bc8cc250e6f9add13541e7d1c408a33b8 | |
parent | 369cf77a6a3e41b1110506ddf43d45804103bfde (diff) | |
parent | 22e091e5253da1e9ad7c0a82c2c84446fc403efe (diff) | |
download | linux-7c13a0d9a1ac6875f6380763b947f4a5a016605f.tar.gz linux-7c13a0d9a1ac6875f6380763b947f4a5a016605f.tar.bz2 linux-7c13a0d9a1ac6875f6380763b947f4a5a016605f.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
-rw-r--r-- | include/linux/netfilter.h | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/nf_conntrack_reasm.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 89341c32631a..03317c8d4077 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h @@ -215,7 +215,7 @@ NF_HOOK_COND(uint8_t pf, unsigned int hook, struct sk_buff *skb, int ret; if (!cond || - (ret = nf_hook_thresh(pf, hook, skb, in, out, okfn, INT_MIN) == 1)) + ((ret = nf_hook_thresh(pf, hook, skb, in, out, okfn, INT_MIN)) == 1)) ret = okfn(skb); return ret; } diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c index 3a3f129a44cb..79d43aa8fa8d 100644 --- a/net/ipv6/netfilter/nf_conntrack_reasm.c +++ b/net/ipv6/netfilter/nf_conntrack_reasm.c @@ -286,7 +286,7 @@ found: /* Check for overlap with preceding fragment. */ if (prev && - (NFCT_FRAG6_CB(prev)->offset + prev->len) - offset > 0) + (NFCT_FRAG6_CB(prev)->offset + prev->len) > offset) goto discard_fq; /* Look for overlap with succeeding segment. */ |