summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_verify.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_verify.c b/src/lib/libcrypto/x509/x509_verify.c
index e0efa9ffc5..a8fd5a37d3 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.78 2026/07/31 03:59:50 kenjiro Exp $ */ 1/* $OpenBSD: x509_verify.c,v 1.79 2026/08/26 16:25:12 beck 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 *
@@ -760,8 +760,11 @@ x509_verify_cert_hostname(struct x509_verify_ctx *ctx, X509 *cert, char *name)
760 if (ctx->xsc != NULL) { 760 if (ctx->xsc != NULL) {
761 int ret; 761 int ret;
762 762
763 if ((ret = x509_vfy_check_id(ctx->xsc)) == 0) 763 ret = x509_vfy_check_id(ctx->xsc);
764 if (ctx->xsc->error != X509_V_OK) {
764 ctx->error = ctx->xsc->error; 765 ctx->error = ctx->xsc->error;
766 ctx->error_depth = ctx->xsc->error_depth;
767 }
765 return ret; 768 return ret;
766 } 769 }
767 return 1; 770 return 1;