From c76670890900dadb631c27f0e0c40d5aa8cb03f5 Mon Sep 17 00:00:00 2001 From: beck <> Date: Sun, 29 Aug 2021 17:13:15 +0000 Subject: Don't call the verify callback twice on success. This fixes a problem in the perl regress where it notices the callback is called twice and complains. ok tb@ bluhm@ --- src/lib/libcrypto/x509/x509_verify.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/x509/x509_verify.c b/src/lib/libcrypto/x509/x509_verify.c index 68dd2863a7..051a04c1be 100644 --- a/src/lib/libcrypto/x509/x509_verify.c +++ b/src/lib/libcrypto/x509/x509_verify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_verify.c,v 1.44 2021/08/28 15:22:42 beck Exp $ */ +/* $OpenBSD: x509_verify.c,v 1.45 2021/08/29 17:13:15 beck Exp $ */ /* * Copyright (c) 2020-2021 Bob Beck * @@ -659,7 +659,6 @@ x509_verify_build_chains(struct x509_verify_ctx *ctx, X509 *cert, ctx->xsc->error = X509_V_OK; ctx->xsc->error_depth = depth; ctx->xsc->current_cert = cert; - (void) ctx->xsc->verify_cb(1, ctx->xsc); } } else if (ctx->error_depth == depth) { if (!x509_verify_ctx_set_xsc_chain(ctx, current_chain, 0, 0)) -- cgit v1.2.3-55-g6feb