aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r--net/ipv6/udp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index eb9e1b39c8f8..b9cc55ccb000 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -847,7 +847,12 @@ do_append_data:
847 if (connected) { 847 if (connected) {
848 ip6_dst_store(sk, dst, 848 ip6_dst_store(sk, dst,
849 ipv6_addr_equal(&fl->fl6_dst, &np->daddr) ? 849 ipv6_addr_equal(&fl->fl6_dst, &np->daddr) ?
850 &np->daddr : NULL); 850 &np->daddr : NULL,
851#ifdef CONFIG_IPV6_SUBTREES
852 ipv6_addr_equal(&fl->fl6_src, &np->saddr) ?
853 &np->saddr :
854#endif
855 NULL);
851 } else { 856 } else {
852 dst_release(dst); 857 dst_release(dst);
853 } 858 }