diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-15 08:53:40 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2010-11-18 18:54:49 +0100 |
commit | 33ee747fff4acb4ea4c143089aa2c596a1e4d0bd (patch) | |
tree | af41d60d01754317997d053362b8e3e756ad42fc /ssl.c | |
parent | Fix compiler warnings about not used dummy() functions (diff) | |
download | openvpn-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |