aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_mode_transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/xfrm4_mode_transport.c')
-rw-r--r--net/ipv4/xfrm4_mode_transport.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/xfrm4_mode_transport.c b/net/ipv4/xfrm4_mode_transport.c
index 92676b7e4034..290c0f2e7c29 100644
--- a/net/ipv4/xfrm4_mode_transport.c
+++ b/net/ipv4/xfrm4_mode_transport.c
@@ -32,7 +32,9 @@ static int xfrm4_transport_output(struct xfrm_state *x, struct sk_buff *skb)
32 ihl = iph->ihl * 4; 32 ihl = iph->ihl * 4;
33 skb->h.raw += ihl; 33 skb->h.raw += ihl;
34 34
35 skb->nh.raw = memmove(skb_push(skb, x->props.header_len), iph, ihl); 35 skb_push(skb, x->props.header_len);
36 skb_reset_network_header(skb);
37 memmove(skb->nh.raw, iph, ihl);
36 return 0; 38 return 0;
37} 39}
38 40