diff options
| author | cvs2svn <admin@example.com> | 2026-05-04 13:55:22 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2026-05-04 13:55:22 +0000 |
| commit | cbcdd558e87dfc1c24eb6a47c1fb660d41c2a56f (patch) | |
| tree | 98eeb517ec0fc9d8c05687ffbdda00ad0f000ee4 /src/lib/libcrypto | |
| parent | 8662e35dbd36d8450a6d4c7188a65c580e4b339f (diff) | |
| download | openbsd-libressl-v4.3.2.tar.gz openbsd-libressl-v4.3.2.tar.bz2 openbsd-libressl-v4.3.2.zip | |
This commit was manufactured by cvs2git to create branch 'OPENBSD_7_9'.libressl-v4.3.2OPENBSD_7_9
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_verify.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/x509_verify.c b/src/lib/libcrypto/x509/x509_verify.c index fc3fbc14da..640558b685 100644 --- a/src/lib/libcrypto/x509/x509_verify.c +++ b/src/lib/libcrypto/x509/x509_verify.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_verify.c,v 1.75 2026/04/01 14:38:26 jsing Exp $ */ | 1 | /* $OpenBSD: x509_verify.c,v 1.76 2026/05/04 13:55:20 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2020-2021 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2020-2021 Bob Beck <beck@openbsd.org> |
| 4 | * | 4 | * |
| @@ -668,11 +668,9 @@ x509_verify_build_chains(struct x509_verify_ctx *ctx, X509 *cert, | |||
| 668 | depth = sk_X509_num(current_chain->certs); | 668 | depth = sk_X509_num(current_chain->certs); |
| 669 | if (depth > 0) | 669 | if (depth > 0) |
| 670 | depth--; | 670 | depth--; |
| 671 | if (depth >= ctx->max_depth) { | 671 | if (depth >= ctx->max_depth && !x509_verify_cert_error(ctx, cert, depth, |
| 672 | (void)x509_verify_cert_error(ctx, cert, depth, | 672 | X509_V_ERR_CERT_CHAIN_TOO_LONG, 0)) |
| 673 | X509_V_ERR_CERT_CHAIN_TOO_LONG, 0); | ||
| 674 | return; | 673 | return; |
| 675 | } | ||
| 676 | 674 | ||
| 677 | count = ctx->chains_count; | 675 | count = ctx->chains_count; |
| 678 | 676 | ||
