Fix error handling in ssltest
[openssl.git] / 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) {