From: Mark Andrews Date: Tue, 4 Jan 2022 01:28:08 +0000 (+1100) Subject: Report when loading of dhparam-file fails X-Git-Tag: v9.19.12~38^2~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2baa58c59f7416f057fb78502bab7914aa05ec76;p=thirdparty%2Fbind9.git Report when loading of dhparam-file fails prior to this loading of the configuration could fail without an informative error message being logged. --- diff --git a/lib/ns/listenlist.c b/lib/ns/listenlist.c index c0f9e5946a9..a4a7c2b2e4d 100644 --- a/lib/ns/listenlist.c +++ b/lib/ns/listenlist.c @@ -22,6 +22,7 @@ #include #include +#include static void destroy(ns_listenlist_t *list); @@ -116,6 +117,13 @@ listenelt_create(isc_mem_t *mctx, in_port_t port, dns_acl_t *acl, if (!isc_tlsctx_load_dhparams( sslctx, tls_params->dhparam_file)) { + isc_log_write(ns_lctx, + NS_LOGCATEGORY_GENERAL, + NS_LOGMODULE_INTERFACEMGR, + ISC_LOG_ERROR, + "loading of dhparam-file " + "'%s' failed", + tls_params->dhparam_file); result = ISC_R_FAILURE; goto tls_error; }