From 2f11e48f0d0317ec92aac421197a8b148da6103b Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Mon, 5 Sep 2022 14:42:32 +0000 Subject: [PATCH] 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. --- lib/isc/netmgr/tlsdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isc/netmgr/tlsdns.c b/lib/isc/netmgr/tlsdns.c index a4ae9755e6..3ad86a3979 100644 --- a/lib/isc/netmgr/tlsdns.c +++ b/lib/isc/netmgr/tlsdns.c @@ -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);