Exit on error in ecparam

Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 99dcd88035330d59ab40b5bc0f551aca7020cd30)
This commit is contained in:
Peter Waltenberg 2015-07-09 14:57:30 -04:00 committed by Rich Salz
parent a15ba3cca3
commit b5e972fdd3

View File

@ -419,8 +419,9 @@ int MAIN(int argc, char **argv)
if (!EC_GROUP_check(group, NULL)) { if (!EC_GROUP_check(group, NULL)) {
BIO_printf(bio_err, "failed\n"); BIO_printf(bio_err, "failed\n");
ERR_print_errors(bio_err); ERR_print_errors(bio_err);
} else goto end;
BIO_printf(bio_err, "ok\n"); }
BIO_printf(bio_err, "ok\n");
} }