From b2d6aed499e584e0da232fd109459cf7743f00fe Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 8 Mar 2016 21:13:05 +0000 Subject: [PATCH] Fix error in ssltest Compiling ssltest with some compilers using --strict-warnings results in complaints about an unused result. Reviewed-by: Kurt Roeckx --- test/ssltest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/ssltest.c b/test/ssltest.c index 71cc126d1c..2ca4d69558 100644 --- a/test/ssltest.c +++ b/test/ssltest.c @@ -1626,8 +1626,9 @@ int main(int argc, char *argv[]) rv = SSL_CONF_cmd(c_cctx, arg, argn); /* If not recognised use server context */ if (rv == -2) { - (void)SSL_CONF_cmd(s_cctx2, arg, argn); - rv = SSL_CONF_cmd(s_cctx, arg, argn); + rv = SSL_CONF_cmd(s_cctx2, arg, argn); + if (rv > 0) + rv = SSL_CONF_cmd(s_cctx, arg, argn); } if (rv <= 0) { BIO_printf(bio_err, "Error processing %s %s\n", -- 2.25.1