aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r--net/sctp/ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index 7f31ff638bc6..bd04aed673cb 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -330,7 +330,7 @@ static void sctp_v6_get_saddr(struct sctp_association *asoc,
330 list_for_each_entry_rcu(laddr, &bp->address_list, list) { 330 list_for_each_entry_rcu(laddr, &bp->address_list, list) {
331 if (!laddr->valid) 331 if (!laddr->valid)
332 continue; 332 continue;
333 if ((laddr->use_as_src) && 333 if ((laddr->state == SCTP_ADDR_SRC) &&
334 (laddr->a.sa.sa_family == AF_INET6) && 334 (laddr->a.sa.sa_family == AF_INET6) &&
335 (scope <= sctp_scope(&laddr->a))) { 335 (scope <= sctp_scope(&laddr->a))) {
336 bmatchlen = sctp_v6_addr_match_len(daddr, &laddr->a); 336 bmatchlen = sctp_v6_addr_match_len(daddr, &laddr->a);