aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/esp4.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/esp4.c')
-rw-r--r--net/ipv4/esp4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c
index ed3deed66445..957674562801 100644
--- a/net/ipv4/esp4.c
+++ b/net/ipv4/esp4.c
@@ -27,7 +27,7 @@ static int esp_output(struct xfrm_state *x, struct sk_buff *skb)
27 int nfrags; 27 int nfrags;
28 28
29 /* Strip IP+ESP header. */ 29 /* Strip IP+ESP header. */
30 __skb_pull(skb, skb->h.raw - skb->data); 30 __skb_pull(skb, skb_transport_offset(skb));
31 /* Now skb is pure payload to encrypt */ 31 /* Now skb is pure payload to encrypt */
32 32
33 err = -ENOMEM; 33 err = -ENOMEM;