summaryrefslogtreecommitdiff
path: root/src/usr.bin
diff options
context:
space:
mode:
authortb <>2026-05-09 14:24:58 +0000
committertb <>2026-05-09 14:24:58 +0000
commit0f8e2d8e0bff8750da6306d64dad68da3a745633 (patch)
tree81510fe2dd09ab37fa93f9e945d0f8cb61fa27b1 /src/usr.bin
parentc6489249a3c1cf02630823f8d56d7b0e1c77d25e (diff)
downloadopenbsd-0f8e2d8e0bff8750da6306d64dad68da3a745633.tar.gz
openbsd-0f8e2d8e0bff8750da6306d64dad68da3a745633.tar.bz2
openbsd-0f8e2d8e0bff8750da6306d64dad68da3a745633.zip
openssl ecparam: make EC_GROUP_check() failure result in "app" failure
Found by Frank Denis
Diffstat (limited to 'src/usr.bin')
-rw-r--r--src/usr.bin/openssl/ecparam.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/usr.bin/openssl/ecparam.c b/src/usr.bin/openssl/ecparam.c
index 285f5d563e..a4bb00f290 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.25 2025/01/19 10:24:17 tb Exp $ */ 1/* $OpenBSD: ecparam.c,v 1.26 2026/05/09 14:24:58 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -386,8 +386,9 @@ ecparam_main(int argc, char **argv)
386 if (!EC_GROUP_check(group, NULL)) { 386 if (!EC_GROUP_check(group, NULL)) {
387 BIO_printf(bio_err, "failed\n"); 387 BIO_printf(bio_err, "failed\n");
388 ERR_print_errors(bio_err); 388 ERR_print_errors(bio_err);
389 } else 389 goto end;
390 BIO_printf(bio_err, "ok\n"); 390 }
391 BIO_printf(bio_err, "ok\n");
391 392
392 } 393 }
393 if (!cfg.noout) { 394 if (!cfg.noout) {