summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorDavid S. Miller2009-03-17 21:12:47 +0100
committerDavid S. Miller2009-03-17 21:12:47 +0100
commit4ada8107f465b97326751de66d3c11ed78bf8214 (patch)
treec25db4b4b8f9297b61d357b6df33ca106901f84f /net/ipv6
parentgro: Fix legacy path napi_complete crash (diff)
parentnetfilter: conntrack: check for NEXTHDR_NONE before header sanity checking (diff)
downloadkernel-qcow2-linux-4ada8107f465b97326751de66d3c11ed78bf8214.tar.gz
kernel-qcow2-linux-4ada8107f465b97326751de66d3c11ed78bf8214.tar.xz
kernel-qcow2-linux-4ada8107f465b97326751de66d3c11ed78bf8214.zip
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/netfilter/nf_conntrack_reasm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c
index ed4d79a9e4a6..058a5e4a60c3 100644
--- a/net/ipv6/netfilter/nf_conntrack_reasm.c
+++ b/net/ipv6/netfilter/nf_conntrack_reasm.c
@@ -528,14 +528,14 @@ find_prev_fhdr(struct sk_buff *skb, u8 *prevhdrp, int *prevhoff, int *fhoff)
if (!ipv6_ext_hdr(nexthdr)) {
return -1;
}
- if (len < (int)sizeof(struct ipv6_opt_hdr)) {
- pr_debug("too short\n");
- return -1;
- }
if (nexthdr == NEXTHDR_NONE) {
pr_debug("next header is none\n");
return -1;
}
+ if (len < (int)sizeof(struct ipv6_opt_hdr)) {
+ pr_debug("too short\n");
+ return -1;
+ }
if (skb_copy_bits(skb, start, &hdr, sizeof(hdr)))
BUG();
if (nexthdr == NEXTHDR_AUTH)