summaryrefslogtreecommitdiff
path: root/src/usr.bin
diff options
context:
space:
mode:
authortb <>2026-05-09 14:28:18 +0000
committertb <>2026-05-09 14:28:18 +0000
commit6556707fc13e07921f7e60bc526c07638b6200fd (patch)
treee77190e930043d648855d169cb8257a38c0a6051 /src/usr.bin
parent0f8e2d8e0bff8750da6306d64dad68da3a745633 (diff)
downloadopenbsd-6556707fc13e07921f7e60bc526c07638b6200fd.tar.gz
openbsd-6556707fc13e07921f7e60bc526c07638b6200fd.tar.bz2
openbsd-6556707fc13e07921f7e60bc526c07638b6200fd.zip
openssl crl: make verify failure result in "app" failure
Found by Frank Denis
Diffstat (limited to 'src/usr.bin')
-rw-r--r--src/usr.bin/openssl/crl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/usr.bin/openssl/crl.c b/src/usr.bin/openssl/crl.c
index e64038dfda..54314bee73 100644
--- a/src/usr.bin/openssl/crl.c
+++ b/src/usr.bin/openssl/crl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: crl.c,v 1.17 2023/03/06 14:32:05 tb Exp $ */ 1/* $OpenBSD: crl.c,v 1.18 2026/05/09 14:28:18 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -327,10 +327,11 @@ crl_main(int argc, char **argv)
327 EVP_PKEY_free(pkey); 327 EVP_PKEY_free(pkey);
328 if (i < 0) 328 if (i < 0)
329 goto end; 329 goto end;
330 if (i == 0) 330 if (i == 0) {
331 BIO_printf(bio_err, "verify failure\n"); 331 BIO_printf(bio_err, "verify failure\n");
332 else 332 goto end;
333 BIO_printf(bio_err, "verify OK\n"); 333 }
334 BIO_printf(bio_err, "verify OK\n");
334 } 335 }
335 336
336 /* Print requested information the order that the flags were given. */ 337 /* Print requested information the order that the flags were given. */