svn commit: r295805 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Fri Feb 19 11:25:20 UTC 2016
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;
More information about the svn-src-all
mailing list