svn commit: r258224 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sat Nov 16 15:34:15 UTC 2013


Author: tuexen
Date: Sat Nov 16 15:34:14 2013
New Revision: 258224
URL: http://svnweb.freebsd.org/changeset/base/258224

Log:
  When determining if an address belongs to an stcb, take the address family
  into account for wildcard bound endpoints.
  
  MFC after: 3 days

Modified:
  head/sys/netinet/sctp_pcb.c

Modified: head/sys/netinet/sctp_pcb.c
==============================================================================
--- head/sys/netinet/sctp_pcb.c	Sat Nov 16 15:34:11 2013	(r258223)
+++ head/sys/netinet/sctp_pcb.c	Sat Nov 16 15:34:14 2013	(r258224)
@@ -875,6 +875,9 @@ sctp_does_stcb_own_this_addr(struct sctp
 					 */
 					continue;
 				}
+				if (sctp_ifa->address.sa.sa_family != to->sa_family) {
+					continue;
+				}
 				switch (sctp_ifa->address.sa.sa_family) {
 #ifdef INET
 				case AF_INET:


More information about the svn-src-all mailing list