diff options
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 5d075b5f70fc..cd99f1a0f59f 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -917,7 +917,8 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
917 | if (!saddr) | 917 | if (!saddr) |
918 | saddr = inet->mc_addr; | 918 | saddr = inet->mc_addr; |
919 | connected = 0; | 919 | connected = 0; |
920 | } | 920 | } else if (!ipc.oif) |
921 | ipc.oif = inet->uc_index; | ||
921 | 922 | ||
922 | if (connected) | 923 | if (connected) |
923 | rt = (struct rtable *)sk_dst_check(sk, 0); | 924 | rt = (struct rtable *)sk_dst_check(sk, 0); |