From da001489be3b33d33e185356f38ae5c89736aed0 Mon Sep 17 00:00:00 2001 From: Yorgos Thessalonikefs Date: Mon, 16 Feb 2026 16:28:58 +0100 Subject: [PATCH] Review comment for checking out of memory condition Co-authored-by: Wouter Wijngaards --- util/config_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/config_file.c b/util/config_file.c index 0175d562f..79dba6601 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -129,7 +129,7 @@ config_create(void) cfg->tls_cert_bundle = NULL; cfg->tls_win_cert = 0; cfg->tls_use_sni = 1; - cfg->tls_protocols = strdup("TLSv1.2 TLSv1.3"); + if(!(cfg->tls_protocols = strdup("TLSv1.2 TLSv1.3"))) goto error_exit; cfg->https_port = UNBOUND_DNS_OVER_HTTPS_PORT; if(!(cfg->http_endpoint = strdup("/dns-query"))) goto error_exit; cfg->http_max_streams = 100;