mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-27 20:01:15 -05:00
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:
parent
bb3304c6af
commit
dfa8907a3d
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue