summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/apps/ecparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/apps/ecparam.c')
-rw-r--r--crypto/openssl/apps/ecparam.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/openssl/apps/ecparam.c b/crypto/openssl/apps/ecparam.c
index 1f340a9..402fb31 100644
--- a/crypto/openssl/apps/ecparam.c
+++ b/crypto/openssl/apps/ecparam.c
@@ -413,14 +413,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");
}
OpenPOWER on IntegriCloud