aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl.c b/ssl.c
index 1f93732..e7cb46a 100644
--- a/ssl.c
+++ b/ssl.c
@@ -967,7 +967,7 @@ verify_callback (int preverify_ok, X509_STORE_CTX * ctx)
/* run --tls-verify script */
if (opt->verify_command)
{
- const char *tmp_file;
+ const char *tmp_file = NULL;
struct gc_arena gc;
int ret;
@@ -976,7 +976,7 @@ verify_callback (int preverify_ok, X509_STORE_CTX * ctx)
if (opt->verify_export_cert)
{
gc = gc_new();
- if (tmp_file=get_peer_cert(ctx, opt->verify_export_cert,&gc))
+ if ((tmp_file=get_peer_cert(ctx, opt->verify_export_cert,&gc)))
{
setenv_str(opt->es, "peer_cert", tmp_file);
}