]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed potential misinterpretation of boolean logic
authorDavid Sommerseth <dazo@users.sourceforge.net>
Mon, 15 Nov 2010 07:53:40 +0000 (08:53 +0100)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Thu, 18 Nov 2010 17:54:49 +0000 (18:54 +0100)
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>
ssl.c

diff --git a/ssl.c b/ssl.c
index c05d34fcd253763804fe7bd7f57186cd4460f6ee..8644ae44bfbf556d3e9914478d9b65a327b792b7 100644 (file)
--- 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);
            }