Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74796
b: refs/heads/master
c: 2017a72
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Graf authored and David S. Miller committed Dec 11, 2007
1 parent 526ed3c commit bc79107
Show file tree
Hide file tree
Showing 2 changed files with 6 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: a4e65d36a959005f14142535b58c44cd0f1de8cb
refs/heads/master: 2017a72c070033830b460d31cd4703f9d2ec0d56
5 changes: 5 additions & 0 deletions trunk/net/ipv4/esp4.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <linux/pfkeyv2.h>
#include <linux/random.h>
#include <linux/spinlock.h>
#include <linux/in6.h>
#include <net/icmp.h>
#include <net/protocol.h>
#include <net/udp.h>
Expand Down Expand Up @@ -224,6 +225,10 @@ static int esp_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)
goto out;

iph = ip_hdr(skb);
ihl = iph->ihl * 4;

Expand Down

0 comments on commit bc79107

Please sign in to comment.