Explorar o código

Merge git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6

David S. Miller %!s(int64=14) %!d(string=hai) anos
pai
achega
7c13a0d9a1
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      include/linux/netfilter.h
  2. 1 1
      net/ipv6/netfilter/nf_conntrack_reasm.c

+ 1 - 1
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;
 }

+ 1 - 1
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. */