Fix error handling in ssltest
authorMatt Caswell <matt@openssl.org>
Thu, 5 Feb 2015 10:19:55 +0000 (10:19 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 6 Feb 2015 10:15:22 +0000 (10:15 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit ae632974f905c59176fa5f312826f8f692890b67)

ssl/ssltest.c

index 987e3cc4b68e300f2c73895a449a5e117af25de2..2f5a1343996de0a920f58221c1b5d9f1c83f698f 100644 (file)
@@ -1346,7 +1346,7 @@ int doit(SSL *s_ssl, SSL *c_ssl, long count)
         if (!do_client && !do_server) {
             fprintf(stdout, "ERROR IN STARTUP\n");
             ERR_print_errors(bio_err);
-            break;
+            goto err;
         }
         if (do_client && !(done & C_DONE)) {
             if (c_write) {