aboutsummaryrefslogtreecommitdiff
path: root/ssl.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-11-15 08:53:40 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-11-18 18:54:49 +0100
commit33ee747fff4acb4ea4c143089aa2c596a1e4d0bd (patch)
treeaf41d60d01754317997d053362b8e3e756ad42fc /ssl.c
parentFix compiler warnings about not used dummy() functions (diff)
downloadopenvpn-33ee747fff4acb4ea4c143089aa2c596a1e4d0bd.tar.xz
Fixed potential misinterpretation of boolean logic
The GNU C compiler warned about a potential issue with an if() expression missing an extra set of parentheses. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> Acked-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'ssl.c')
-rw-r--r--ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl.c b/ssl.c
index c05d34f..8644ae4 100644
--- a/ssl.c
+++ b/ssl.c
@@ -940,7 +940,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);
}