diff options
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r-- | net/sctp/ipv6.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index f5b45b8b8b16..2a186b201ad2 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c | |||
@@ -252,6 +252,8 @@ static void sctp_v6_get_dst(struct sctp_transport *t, union sctp_addr *saddr, | |||
252 | fl6->flowi6_proto = IPPROTO_SCTP; | 252 | fl6->flowi6_proto = IPPROTO_SCTP; |
253 | if (ipv6_addr_type(&daddr->v6.sin6_addr) & IPV6_ADDR_LINKLOCAL) | 253 | if (ipv6_addr_type(&daddr->v6.sin6_addr) & IPV6_ADDR_LINKLOCAL) |
254 | fl6->flowi6_oif = daddr->v6.sin6_scope_id; | 254 | fl6->flowi6_oif = daddr->v6.sin6_scope_id; |
255 | else if (asoc) | ||
256 | fl6->flowi6_oif = asoc->base.sk->sk_bound_dev_if; | ||
255 | 257 | ||
256 | pr_debug("%s: dst=%pI6 ", __func__, &fl6->daddr); | 258 | pr_debug("%s: dst=%pI6 ", __func__, &fl6->daddr); |
257 | 259 | ||