summaryrefslogtreecommitdiffstats
path: root/kernel/net/sctp/ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/sctp/ipv6.c')
-rw-r--r--kernel/net/sctp/ipv6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/net/sctp/ipv6.c b/kernel/net/sctp/ipv6.c
index ec529121f..ce46f1c7f 100644
--- a/kernel/net/sctp/ipv6.c
+++ b/kernel/net/sctp/ipv6.c
@@ -526,6 +526,8 @@ static int sctp_v6_cmp_addr(const union sctp_addr *addr1,
}
return 0;
}
+ if (addr1->v6.sin6_port != addr2->v6.sin6_port)
+ return 0;
if (!ipv6_addr_equal(&addr1->v6.sin6_addr, &addr2->v6.sin6_addr))
return 0;
/* If this is a linklocal address, compare the scope_id. */