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
X509 *newcrt = NULL;
X509_NAME *name;
const EVP_MD *digest = NULL;
- CONF *ctmp = NULL;
int key_type;
/* Create the certificate */
return newcrt;
mkcert_error:
- if (ctmp) NCONF_free(ctmp);
if (newcrt) X509_free(newcrt);
return NULL;