diff options
Diffstat (limited to 'net/ipv4/esp4.c')
-rw-r--r-- | net/ipv4/esp4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index 957674562801..82543eebfa52 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c | |||
@@ -261,7 +261,8 @@ static int esp_input(struct xfrm_state *x, struct sk_buff *skb) | |||
261 | 261 | ||
262 | iph->protocol = nexthdr[1]; | 262 | iph->protocol = nexthdr[1]; |
263 | pskb_trim(skb, skb->len - alen - padlen - 2); | 263 | pskb_trim(skb, skb->len - alen - padlen - 2); |
264 | skb->h.raw = __skb_pull(skb, sizeof(*esph) + esp->conf.ivlen) - ihl; | 264 | __skb_pull(skb, sizeof(*esph) + esp->conf.ivlen); |
265 | skb_set_transport_header(skb, -ihl); | ||
265 | 266 | ||
266 | return 0; | 267 | return 0; |
267 | 268 | ||