summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_verify.c4
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 02db436b1a..f51ea1d868 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.33 2021/02/25 16:58:59 jsing Exp $ */ 1/* $OpenBSD: x509_verify.c,v 1.34 2021/02/26 15:19:41 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 *
@@ -269,7 +269,7 @@ x509_verify_ctx_add_chain(struct x509_verify_ctx *ctx,
269 ctx->xsc->error = X509_V_OK; 269 ctx->xsc->error = X509_V_OK;
270 ctx->xsc->error_depth = 0; 270 ctx->xsc->error_depth = 0;
271 271
272 if (!x509_verify_ctx_set_xsc_chain(ctx, chain, 0, 0)) 272 if (!x509_verify_ctx_set_xsc_chain(ctx, chain, 0, 1))
273 return 0; 273 return 0;
274 274
275 /* 275 /*