CLEANUP: ssl: Remove a useless variable from ssl_gen_x509()

This function was recently created by moving code from acme_gen_tmp_x509()
(in acme.c) to ssl_gencrt.c (ssl_gen_x509()). The <ctmp> variable was
initialized and then freed without ever being used. This was already the
case in the original acme_gen_tmp_x509() function.

This patch removes these useless statements.

Reported in GH #3284
This commit is contained in:
Frederic Lecaille 2026-02-23 10:47:15 +01:00
parent bb3304c6af
commit dfa8907a3d

View file

@ -524,7 +524,6 @@ X509 *ssl_gen_x509(EVP_PKEY *pkey)
X509 *newcrt = NULL;
X509_NAME *name;
const EVP_MD *digest = NULL;
CONF *ctmp = NULL;
int key_type;
/* Create the certificate */
@ -581,7 +580,6 @@ X509 *ssl_gen_x509(EVP_PKEY *pkey)
return newcrt;
mkcert_error:
if (ctmp) NCONF_free(ctmp);
if (newcrt) X509_free(newcrt);
return NULL;