aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_mode_tunnel.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/xfrm4_mode_tunnel.c')
-rw-r--r--net/ipv4/xfrm4_mode_tunnel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/xfrm4_mode_tunnel.c b/net/ipv4/xfrm4_mode_tunnel.c
index 9963700e74c1..bac1a91f0cbe 100644
--- a/net/ipv4/xfrm4_mode_tunnel.c
+++ b/net/ipv4/xfrm4_mode_tunnel.c
@@ -49,8 +49,7 @@ static int xfrm4_tunnel_output(struct xfrm_state *x, struct sk_buff *skb)
49 iph = ip_hdr(skb); 49 iph = ip_hdr(skb);
50 skb->transport_header = skb->network_header; 50 skb->transport_header = skb->network_header;
51 51
52 skb_push(skb, x->props.header_len); 52 skb_set_network_header(skb, -x->props.header_len);
53 skb_reset_network_header(skb);
54 top_iph = ip_hdr(skb); 53 top_iph = ip_hdr(skb);
55 54
56 top_iph->ihl = 5; 55 top_iph->ihl = 5;