SSL: avoid warning when ECH is not configured and not supported.

This commit is contained in:
QirunGao authored and Roman Arutyunyan committed 2025-12-04 21:09:32 +04:00
1 parent 367113670e
commit 0427f5335f
1 file changed
+6 -3
+6 -3
View 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
}