summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/ecparam.c
diff options
context:
space:
mode:
authordoug <>2015-07-20 03:02:46 +0000
committerdoug <>2015-07-20 03:02:46 +0000
commit4007401d3c8813b0a7c79c463f62152de1baac68 (patch)
tree31c00ba43785d2dfed2d612bed8142463d13c6b8 /src/usr.bin/openssl/ecparam.c
parent79c287dcdc478efff8bbc279485ee63bfbf95b52 (diff)
downloadopenbsd-4007401d3c8813b0a7c79c463f62152de1baac68.tar.gz
openbsd-4007401d3c8813b0a7c79c463f62152de1baac68.tar.bz2
openbsd-4007401d3c8813b0a7c79c463f62152de1baac68.zip
Remove check that is never true.
Fixes coverity issue 78799 as group == NULL was already an error condition above here. ok beck@
Diffstat (limited to 'src/usr.bin/openssl/ecparam.c')
-rw-r--r--src/usr.bin/openssl/ecparam.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/usr.bin/openssl/ecparam.c b/src/usr.bin/openssl/ecparam.c
index 5922c1803a..361d2350fa 100644
--- a/src/usr.bin/openssl/ecparam.c
+++ b/src/usr.bin/openssl/ecparam.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecparam.c,v 1.9 2015/06/20 14:24:49 jsing Exp $ */ 1/* $OpenBSD: ecparam.c,v 1.10 2015/07/20 03:02:46 doug Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -406,8 +406,6 @@ ecparam_main(int argc, char **argv)
406 goto end; 406 goto end;
407 } 407 }
408 if (ecparam_config.check) { 408 if (ecparam_config.check) {
409 if (group == NULL)
410 BIO_printf(bio_err, "no elliptic curve parameters\n");
411 BIO_printf(bio_err, "checking elliptic curve parameters: "); 409 BIO_printf(bio_err, "checking elliptic curve parameters: ");
412 if (!EC_GROUP_check(group, NULL)) { 410 if (!EC_GROUP_check(group, NULL)) {
413 BIO_printf(bio_err, "failed\n"); 411 BIO_printf(bio_err, "failed\n");