diff options
Diffstat (limited to 'net/ipv4/ipip.c')
-rw-r--r-- | net/ipv4/ipip.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index 9df7ecd393f2..e6905fbda2a2 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c | |||
@@ -188,8 +188,12 @@ static int ipip_rcv(struct sk_buff *skb) | |||
188 | struct net *net = dev_net(skb->dev); | 188 | struct net *net = dev_net(skb->dev); |
189 | struct ip_tunnel_net *itn = net_generic(net, ipip_net_id); | 189 | struct ip_tunnel_net *itn = net_generic(net, ipip_net_id); |
190 | struct ip_tunnel *tunnel; | 190 | struct ip_tunnel *tunnel; |
191 | const struct iphdr *iph = ip_hdr(skb); | 191 | const struct iphdr *iph; |
192 | 192 | ||
193 | if (iptunnel_pull_header(skb, 0, tpi.proto)) | ||
194 | goto drop; | ||
195 | |||
196 | iph = ip_hdr(skb); | ||
193 | tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, TUNNEL_NO_KEY, | 197 | tunnel = ip_tunnel_lookup(itn, skb->dev->ifindex, TUNNEL_NO_KEY, |
194 | iph->saddr, iph->daddr, 0); | 198 | iph->saddr, iph->daddr, 0); |
195 | if (tunnel) { | 199 | if (tunnel) { |