2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Fix isc_nm_listentlsdns() error path bug

The isc_nm_listentlsdns() function erroneously calls
isc__nm_tcpdns_stoplistening() instead of isc__nm_tlsdns_stoplistening()
when something goes wrong, which can cause an assertion failure.
This commit is contained in:
Aram Sargsyan
2022-09-05 14:42:32 +00:00
parent 7067f30510
commit 2f11e48f0d

View File

@@ -542,7 +542,7 @@ isc_nm_listentlsdns(isc_nm_t *mgr, uint32_t workers, isc_sockaddr_t *iface,
if (result != ISC_R_SUCCESS) {
atomic_store(&sock->active, false);
isc__nm_tcpdns_stoplistening(sock);
isc__nm_tlsdns_stoplistening(sock);
isc_nmsocket_close(&sock);
return (result);