aboutsummaryrefslogtreecommitdiffstats
path: root/apps/ecparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ecparam.c')
-rw-r--r--apps/ecparam.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/ecparam.c b/apps/ecparam.c
index 06ac77b838a3..71b67f435cfd 100644
--- a/apps/ecparam.c
+++ b/apps/ecparam.c
@@ -416,14 +416,13 @@ int MAIN(int argc, char **argv)
}
if (check) {
- if (group == NULL)
- BIO_printf(bio_err, "no elliptic curve parameters\n");
BIO_printf(bio_err, "checking elliptic curve parameters: ");
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");
}