Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Nov 2013 15:34:15 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r258224 - head/sys/netinet
Message-ID:  <201311161534.rAGFYFqQ058420@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311161534.rAGFYFqQ058420>