mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Do not call isc_tlsctx_free() on TLS listener creation failure
This commit removes a superfluous call to isc_tlsctx_free() which was leading to double free() error in a case of a TLS listener creation failure. The call is superfluous because the TLS context object is supposed to be destroyed in ns_listenelt_destroy() only.
This commit is contained in:
@@ -511,7 +511,6 @@ ns_interface_listentls(ns_interface_t *ifp, isc_tlsctx_t *sslctx) {
|
||||
isc_log_write(IFMGR_COMMON_LOGARGS, ISC_LOG_ERROR,
|
||||
"creating TLS socket: %s",
|
||||
isc_result_totext(result));
|
||||
isc_tlsctx_free(&sslctx);
|
||||
return (result);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user