From dcb3fc4cd654be3df2e670dd804e812a9cb63e5f Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Sat, 16 Nov 2013 15:34:14 +0000 Subject: [PATCH] When determining if an address belongs to an stcb, take the address family into account for wildcard bound endpoints. MFC after: 3 days --- sys/netinet/sctp_pcb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/netinet/sctp_pcb.c b/sys/netinet/sctp_pcb.c index 5ab1484a7bd..75e22bef1ad 100644 --- a/sys/netinet/sctp_pcb.c +++ b/sys/netinet/sctp_pcb.c @@ -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: