svn commit: r294628 - projects/vnet/sys/netinet
Bjoern A. Zeeb
bz at FreeBSD.org
Sat Jan 23 12:50:04 UTC 2016
Author: bz
Date: Sat Jan 23 12:50:02 2016
New Revision: 294628
URL: https://svnweb.freebsd.org/changeset/base/294628
Log:
Use sctp_asconf_iterator_end() rather than doing the cleanup manually.
Sponsored by: The FreeBSD Foundation
Modified:
projects/vnet/sys/netinet/sctp_asconf.c
Modified: projects/vnet/sys/netinet/sctp_asconf.c
==============================================================================
--- projects/vnet/sys/netinet/sctp_asconf.c Sat Jan 23 12:25:24 2016 (r294627)
+++ projects/vnet/sys/netinet/sctp_asconf.c Sat Jan 23 12:50:02 2016 (r294628)
@@ -3281,10 +3281,7 @@ sctp_addr_mgmt_ep_sa(struct sctp_inpcb *
if (ret) {
SCTP_PRINTF("Failed to initiate iterator for addr_mgmt_ep_sa\n");
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_ASCONF, EFAULT);
- atomic_add_int(&ifa->refcount, -1);
- SCTP_DECR_LADDR_COUNT();
- SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_laddr), wi);
- SCTP_FREE(asc, SCTP_M_ASC_IT);
+ sctp_asconf_iterator_end(asc);
return (EFAULT);
}
}
More information about the svn-src-projects
mailing list