Browse code

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>

David Sommerseth authored on 2010/11/15 16:53:40
Showing 1 changed files
... ...
@@ -940,7 +940,7 @@ verify_callback (int preverify_ok, X509_STORE_CTX * ctx)
940 940
       if (opt->verify_export_cert)
941 941
         {
942 942
           gc = gc_new();
943
-          if (tmp_file=get_peer_cert(ctx, opt->verify_export_cert,&gc))
943
+          if ((tmp_file=get_peer_cert(ctx, opt->verify_export_cert,&gc)))
944 944
            {
945 945
              setenv_str(opt->es, "peer_cert", tmp_file);
946 946
            }