diff options
author | Peter Waltenberg <pwalten@au1.ibm.com> | 2015-07-09 14:57:30 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-07-09 15:42:52 -0400 |
commit | 99dcd88035330d59ab40b5bc0f551aca7020cd30 (patch) | |
tree | e18c929ee6b2c1dcec014520383e83783907c533 /apps | |
parent | 851fdda1a1952e482fc3f5f1c7c3acdff132bbae (diff) |
Exit on error in ecparam
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/ecparam.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/ecparam.c b/apps/ecparam.c index a0781c525b..8464c882ca 100644 --- a/apps/ecparam.c +++ b/apps/ecparam.c @@ -326,8 +326,9 @@ int ecparam_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"); } |