aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/udp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 38390dd19636..84b1a296eecb 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -793,6 +793,9 @@ do_udp_sendmsg:
793 if (!fl.oif) 793 if (!fl.oif)
794 fl.oif = sk->sk_bound_dev_if; 794 fl.oif = sk->sk_bound_dev_if;
795 795
796 if (!fl.oif)
797 fl.oif = np->sticky_pktinfo.ipi6_ifindex;
798
796 if (msg->msg_controllen) { 799 if (msg->msg_controllen) {
797 opt = &opt_space; 800 opt = &opt_space;
798 memset(opt, 0, sizeof(struct ipv6_txoptions)); 801 memset(opt, 0, sizeof(struct ipv6_txoptions));