summaryrefslogtreecommitdiffstats
path: root/ssl.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-08-16 20:23:49 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-10-21 21:27:19 +0200
commit4bf989571a74f90bb5d783072919862d2b64034e (patch)
treef0551f61cb18975d0d74beb0533dfae4cead3b10 /ssl.c
parent6cc43bf573700b2391ae462651190a3b209da2c8 (diff)
downloadopenvpn-4bf989571a74f90bb5d783072919862d2b64034e.tar.gz
openvpn-4bf989571a74f90bb5d783072919862d2b64034e.tar.xz
openvpn-4bf989571a74f90bb5d783072919862d2b64034e.zip
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.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);
}