diff options
author | Matt Caswell <matt@openssl.org> | 2016-03-08 21:13:05 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-03-08 22:55:21 +0000 |
commit | b2d6aed499e584e0da232fd109459cf7743f00fe (patch) | |
tree | efa13d10080d4a744497d5d184976137e5ce7af4 /test | |
parent | a8a355402cf2b75fd8fffcd56f9abf6e9c5fae4a (diff) |
Fix error in ssltest
Compiling ssltest with some compilers using --strict-warnings results in
complaints about an unused result.
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/ssltest.c | 5 |
1 files 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", |