diff options
Diffstat (limited to 'net/ipv4/xfrm4_output.c')
-rw-r--r-- | net/ipv4/xfrm4_output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/xfrm4_output.c b/net/ipv4/xfrm4_output.c index 9f298d0dc9a1..7ee6518afa86 100644 --- a/net/ipv4/xfrm4_output.c +++ b/net/ipv4/xfrm4_output.c | |||
@@ -30,6 +30,8 @@ static int xfrm4_tunnel_check_size(struct sk_buff *skb) | |||
30 | 30 | ||
31 | mtu = dst_mtu(skb_dst(skb)); | 31 | mtu = dst_mtu(skb_dst(skb)); |
32 | if (skb->len > mtu) { | 32 | if (skb->len > mtu) { |
33 | skb->protocol = htons(ETH_P_IP); | ||
34 | |||
33 | if (skb->sk) | 35 | if (skb->sk) |
34 | xfrm_local_error(skb, mtu); | 36 | xfrm_local_error(skb, mtu); |
35 | else | 37 | else |