summaryrefslogtreecommitdiff
path: root/apps/ecparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ecparam.c')
-rw-r--r--apps/ecparam.c5
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");
}