Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 2016 11:25:18 +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: r295805 - head/sys/netinet
Message-ID:  <201602191125.u1JBPIU7062331@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Fri Feb 19 11:25:18 2016
New Revision: 295805
URL: https://svnweb.freebsd.org/changeset/base/295805

Log:
  Use the SCTP level pointer, not the interface level.
  
  MFC after:	3 days

Modified:
  head/sys/netinet/sctp_pcb.c

Modified: head/sys/netinet/sctp_pcb.c
==============================================================================
--- head/sys/netinet/sctp_pcb.c	Fri Feb 19 10:40:04 2016	(r295804)
+++ head/sys/netinet/sctp_pcb.c	Fri Feb 19 11:25:18 2016	(r295805)
@@ -5432,7 +5432,7 @@ sctp_select_primary_destination(struct s
 
 
 /*
- * Delete the address from the endpoint local address list There is nothing
+ * Delete the address from the endpoint local address list. There is nothing
  * to be done if we are bound to all addresses
  */
 void
@@ -5483,8 +5483,7 @@ sctp_del_local_addr_ep(struct sctp_inpcb
 			 * to laddr
 			 */
 			TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
-				if (net->ro._s_addr &&
-				    (net->ro._s_addr->ifa == laddr->ifa)) {
+				if (net->ro._s_addr == laddr->ifa) {
 					/* Yep, purge src address selected */
 					sctp_rtentry_t *rt;
 



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