mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-05-28 04:03:29 -04:00
Fixed compiler warning in ssl.c
James Yonan noticed a couple of compiler warnings when compiling with --enable-strict configured. This patch was sent directly to him for review and got accepted. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> Acked-by: James Yonan <james@openvpn.net>
This commit is contained in:
parent
6cc43bf573
commit
4bf989571a
1 changed files with 2 additions and 2 deletions
4
ssl.c
4
ssl.c
|
|
@ -967,7 +967,7 @@ verify_callback (int preverify_ok, X509_STORE_CTX * ctx)
|
|||
/* run --tls-verify script */
|
||||
if (opt->verify_command)
|
||||
{
|
||||
const char *tmp_file;
|
||||
const char *tmp_file = NULL;
|
||||
struct gc_arena gc;
|
||||
int ret;
|
||||
|
||||
|
|
@ -976,7 +976,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue