diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2016-01-23 12:50:02 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2016-01-23 12:50:02 +0000 |
commit | ce1d6b0efafff8148d0526190169631dd208a040 (patch) | |
tree | f0152b6168236c1fe6938e17842b3cb188a19948 /sys/netinet | |
parent | 27a01c6c0c0c12bfcbe1afeef186070fcb53a35f (diff) | |
download | src-ce1d6b0efafff8148d0526190169631dd208a040.tar.gz src-ce1d6b0efafff8148d0526190169631dd208a040.zip |
Use sctp_asconf_iterator_end() rather than doing the cleanup manually.
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/projects/vnet/; revision=294628
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/sctp_asconf.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/netinet/sctp_asconf.c b/sys/netinet/sctp_asconf.c index 2f82b75158b4..328b3b5bb504 100644 --- a/sys/netinet/sctp_asconf.c +++ b/sys/netinet/sctp_asconf.c @@ -3281,10 +3281,7 @@ sctp_addr_mgmt_ep_sa(struct sctp_inpcb *inp, struct sockaddr *sa, 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); } } |