From 0427f5335f7abfbb733a72d6bf3561508f5d8a88 Mon Sep 17 00:00:00 2001 From: QirunGao <65393158+QirunGao@users.noreply.github.com> Date: Tue, 2 Dec 2025 23:32:47 +0100 Subject: [PATCH] SSL: avoid warning when ECH is not configured and not supported. --- src/event/ngx_event_openssl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c index fe2302966..d7a514852 100644 --- a/src/event/ngx_event_openssl.c +++ b/src/event/ngx_event_openssl.c @@ -1741,9 +1741,12 @@ cleanup: return rc; #else - ngx_log_error(NGX_LOG_WARN, ssl->log, 0, - "\"ssl_ech_file\" is not supported on this platform, " - "ignored"); + if (filenames != NULL) { + ngx_log_error(NGX_LOG_WARN, ssl->log, 0, + "\"ssl_ech_file\" is not supported on this platform, " + "ignored"); + } + return NGX_OK; #endif }