Fix error in ssltest
authorMatt Caswell <matt@openssl.org>
Tue, 8 Mar 2016 21:13:05 +0000 (21:13 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 8 Mar 2016 22:55:21 +0000 (22:55 +0000)
Compiling ssltest with some compilers using --strict-warnings results in
complaints about an unused result.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
test/ssltest.c

index 71cc126d1cfb4edc0e9fe231f380b209e8efc4fd..2ca4d69558664287cb06101cf50dc221d575ae02 100644 (file)
@@ -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",