From 2baa58c59f7416f057fb78502bab7914aa05ec76 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 4 Jan 2022 12:28:08 +1100 Subject: [PATCH] Report when loading of dhparam-file fails prior to this loading of the configuration could fail without an informative error message being logged. --- lib/ns/listenlist.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/ns/listenlist.c b/lib/ns/listenlist.c index c0f9e5946a..a4a7c2b2e4 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; }