]> git.kaiwu.me - nginx.git/commitdiff
SSL: avoid warning when ECH is not configured and not supported.
authorQirunGao <65393158+QirunGao@users.noreply.github.com>
Tue, 2 Dec 2025 22:32:47 +0000 (23:32 +0100)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Thu, 4 Dec 2025 17:09:32 +0000 (21:09 +0400)
src/event/ngx_event_openssl.c

index fe2302966320049c48042042ab8a181b3f54d169..d7a514852443a9c3bc1b71868af65e82623eff42 100644 (file)
@@ -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
 }