Exit on error in ecparam
authorPeter Waltenberg <pwalten@au1.ibm.com>
Thu, 9 Jul 2015 18:57:30 +0000 (14:57 -0400)
committerRich Salz <rsalz@openssl.org>
Thu, 9 Jul 2015 19:43:23 +0000 (15:43 -0400)
Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 99dcd88035330d59ab40b5bc0f551aca7020cd30)

apps/ecparam.c

index 06ac77b838a380ec8861ccd1037bca487731406d..f09c802461883d250d54020f930f512043639b15 100644 (file)
@@ -422,8 +422,9 @@ int MAIN(int argc, char **argv)
         if (!EC_GROUP_check(group, NULL)) {
             BIO_printf(bio_err, "failed\n");
             ERR_print_errors(bio_err);
-        } else
-            BIO_printf(bio_err, "ok\n");
+            goto end;
+        }
+        BIO_printf(bio_err, "ok\n");
 
     }