Skip to content

Commit

Permalink
ipv6: call iptunnel_xmit with NULL sock pointer if no tunnel sock is …
Browse files Browse the repository at this point in the history
…available

Fixes: 79b16aa ("udp_tunnel: Pass UDP socket down through udp_tunnel{, 6}_xmit_skb().")
Reported-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hannes Frederic Sowa authored and David S. Miller committed Apr 8, 2015
1 parent 926a882 commit 1b11287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/sit.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ static netdev_tx_t ipip6_tunnel_xmit(struct sk_buff *skb,

skb_set_inner_ipproto(skb, IPPROTO_IPV6);

err = iptunnel_xmit(skb->sk, rt, skb, fl4.saddr, fl4.daddr,
err = iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr,
protocol, tos, ttl, df,
!net_eq(tunnel->net, dev_net(dev)));
iptunnel_xmit_stats(err, &dev->stats, dev->tstats);
Expand Down

0 comments on commit 1b11287

Please sign in to comment.