diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2010-08-16 20:23:49 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-08-16 20:23:49 +0200 |
commit | 206f6afbe926d0392f925ef447c655a390af2665 (patch) | |
tree | 898b63ced0b86d81acce66409a91b9eab0d27a14 /ssl.c | |
parent | Tagging v2.2-beta1 (diff) | |
download | openvpn-206f6afbe926d0392f925ef447c655a390af2665.tar.xz |
Fixed compiler warning in ssl.c
James Yonan noticed a couple of compiler warnings when compiling with
--enable-strict configured. This patch was sent directly to him
for review and got accepted.
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Acked-by: James Yonan <james@openvpn.net>
Diffstat (limited to 'ssl.c')
-rw-r--r-- | ssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |