aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_mode_beet.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/xfrm4_mode_beet.c')
-rw-r--r--net/ipv4/xfrm4_mode_beet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/xfrm4_mode_beet.c b/net/ipv4/xfrm4_mode_beet.c
index 32fcfc0b5c8c..591f0f1ef87f 100644
--- a/net/ipv4/xfrm4_mode_beet.c
+++ b/net/ipv4/xfrm4_mode_beet.c
@@ -51,7 +51,7 @@ static int xfrm4_beet_output(struct xfrm_state *x, struct sk_buff *skb)
51 51
52 BUG_ON(optlen < 0); 52 BUG_ON(optlen < 0);
53 53
54 ph = (struct ip_beet_phdr *)skb->h.raw; 54 ph = (struct ip_beet_phdr *)skb_transport_header(skb);
55 ph->padlen = 4 - (optlen & 4); 55 ph->padlen = 4 - (optlen & 4);
56 ph->hdrlen = optlen / 8; 56 ph->hdrlen = optlen / 8;
57 ph->nexthdr = top_iph->protocol; 57 ph->nexthdr = top_iph->protocol;