mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 08:22:04 -04: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:
parent
7067f30510
commit
2f11e48f0d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue