When determining if an address belongs to an stcb, take the address family

into account for wildcard bound endpoints.

MFC after: 3 days
This commit is contained in:
tuexen 2013-11-16 15:34:14 +00:00
parent e109131873
commit 63b4370996

View File

@ -875,6 +875,9 @@ sctp_does_stcb_own_this_addr(struct sctp_tcb *stcb, struct sockaddr *to)
*/
continue;
}
if (sctp_ifa->address.sa.sa_family != to->sa_family) {
continue;
}
switch (sctp_ifa->address.sa.sa_family) {
#ifdef INET
case AF_INET: