diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/x509/x509_verify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_verify.c b/src/lib/libcrypto/x509/x509_verify.c index a1a9ecc5af..5ab3eaeda1 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.10 2020/09/16 05:47:59 jsing Exp $ */ | 1 | /* $OpenBSD: x509_verify.c,v 1.11 2020/09/19 14:15:38 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -824,7 +824,7 @@ x509_verify(struct x509_verify_ctx *ctx, X509 *leaf, char *name) | |||
824 | { | 824 | { |
825 | struct x509_verify_chain *current_chain; | 825 | struct x509_verify_chain *current_chain; |
826 | 826 | ||
827 | if (ctx == NULL || ctx->roots == NULL || ctx->max_depth == 0) { | 827 | if (ctx->roots == NULL || ctx->max_depth == 0) { |
828 | ctx->error = X509_V_ERR_INVALID_CALL; | 828 | ctx->error = X509_V_ERR_INVALID_CALL; |
829 | return 0; | 829 | return 0; |
830 | } | 830 | } |