diff options
Diffstat (limited to 'net/ipv4/esp4.c')
-rw-r--r-- | net/ipv4/esp4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index 0f62af9a7f15..ffd565350411 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c | |||
@@ -59,7 +59,7 @@ static int esp_output(struct xfrm_state *x, struct sk_buff *skb) | |||
59 | tail[clen - skb->len - 2] = (clen - skb->len) - 2; | 59 | tail[clen - skb->len - 2] = (clen - skb->len) - 2; |
60 | pskb_put(skb, trailer, clen - skb->len); | 60 | pskb_put(skb, trailer, clen - skb->len); |
61 | 61 | ||
62 | __skb_push(skb, skb->data - skb_network_header(skb)); | 62 | __skb_push(skb, -skb_network_offset(skb)); |
63 | top_iph = ip_hdr(skb); | 63 | top_iph = ip_hdr(skb); |
64 | esph = (struct ip_esp_hdr *)(skb_network_header(skb) + | 64 | esph = (struct ip_esp_hdr *)(skb_network_header(skb) + |
65 | top_iph->ihl * 4); | 65 | top_iph->ihl * 4); |