summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorQirunGao <65393158+QirunGao@users.noreply.github.com>2025-12-02 23:32:47 +0100
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>2025-12-04 21:09:32 +0400
commit0427f5335f7abfbb733a72d6bf3561508f5d8a88 (patch)
tree0d6695d186db68c6fa3d34bd1dd4006cd54850ed
parent367113670ecda664074926e1ceb66fcef03972d1 (diff)
downloadnginx-0427f5335f7abfbb733a72d6bf3561508f5d8a88.tar.gz
nginx-0427f5335f7abfbb733a72d6bf3561508f5d8a88.tar.bz2
SSL: avoid warning when ECH is not configured and not supported.
-rw-r--r--src/event/ngx_event_openssl.c9
1 files 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
}