Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74797
b: refs/heads/master
c: 95a02cf
h: refs/heads/master
i:
  74795: 526ed3c
v: v3
  • Loading branch information
Thomas Graf authored and David S. Miller committed Dec 11, 2007
1 parent bc79107 commit 5d5a27d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2017a72c070033830b460d31cd4703f9d2ec0d56
refs/heads/master: 95a02cfd4d33886c166d4a5f309120f8d32ced58
6 changes: 6 additions & 0 deletions trunk/net/ipv6/esp6.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ static int esp6_input(struct xfrm_state *x, struct sk_buff *skb)
}
/* ... check padding bits here. Silly. :-) */

/* RFC4303: Drop dummy packets without any error */
if (nexthdr[1] == IPPROTO_NONE) {
ret = -EINVAL;
goto out;
}

pskb_trim(skb, skb->len - alen - padlen - 2);
ret = nexthdr[1];
}
Expand Down

0 comments on commit 5d5a27d

Please sign in to comment.