From: David Sommerseth Date: Mon, 15 Nov 2010 07:53:40 +0000 (+0100) Subject: Fixed potential misinterpretation of boolean logic X-Git-Tag: v2.2-beta4~2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33ee747fff4acb4ea4c143089aa2c596a1e4d0bd;p=thirdparty%2Fopenvpn.git 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 Acked-by: Peter Stuge --- diff --git a/ssl.c b/ssl.c index c05d34fcd..8644ae44b 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); }