- To make patch application easier in the future
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Acked-by: James Yonan <james@openvpn.net>
Signed-off-by: David Sommerseth <davids@redhat.com>
DH *dh;
BIO *bio;
bool using_cert_file = false;
- X509 *my_cert = NULL;
ASSERT(NULL != new_ctx);
else
#endif
{
+ X509 *my_cert = NULL;
+
/* Load Certificate */
if (options->cert_file)
{
ASSERT (my_cert);
if (!use_external_private_key(ctx, my_cert))
msg (M_SSLERR, "Cannot enable SSL external private key capability");
+ if (my_cert)
+ X509_free(my_cert);
}
else
#endif
msg (M_SSLERR, "Problem with cipher list: %s", options->cipher_list);
}
- done:
tls_clear_error ();
-
- if (my_cert)
- X509_free(my_cert);
-
return;
err:
+ tls_clear_error ();
tls_ctx_free (new_ctx);
- goto done;
+ return;
}
/*