diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 65b3168bce31..ab745cda1179 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -118,6 +118,8 @@ static int ip6_finish_output2(struct net *net, struct sock *sk, struct sk_buff * if (res != LWTUNNEL_XMIT_CONTINUE) return res; + hdr = ipv6_hdr(skb); + daddr = &hdr->daddr; } rcu_read_lock_bh();