Fix memory leak in case of cert key mismatch, thanks to @disaykin

This commit is contained in:
Soner Tari 2023-05-18 00:26:58 +03:00
parent d48ba1da9a
commit 94fed777d4

View File

@ -109,6 +109,7 @@ opts_load_cert_chain_key(const char *filename)
log_err_level_printf(LOG_CRIT, "Cert does not match key in PEM file "
"'%s':\n", filename);
ERR_print_errors_fp(stderr);
cert_free(cert);
return NULL;
}