Sfoglia il codice sorgente

Use correct name of file (certificate chain) in error message

Use correct file name when printing error message after unsuccessful
call to SSL_CTX_use_certificate_chain_file().
Krzysztof Kozlowski 6 anni fa
parent
commit
c1686a301e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -15556,7 +15556,7 @@ ssl_use_pem_file(struct mg_context *phys_ctx,
 			mg_cry_ctx_internal(phys_ctx,
 			                    "%s: cannot use certificate chain file %s: %s",
 			                    __func__,
-			                    pem,
+			                    chain,
 			                    ssl_error());
 			return 0;
 		}