From 0ef5a3d00eda88b8714d728200a2c865b5396591 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 18 May 2020 11:27:16 -0700 Subject: [PATCH] Fix for `WOLFSSL_ALT_CERT_CHAINS` incorrectly failing on success case. --- src/internal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 08c99c62e..9682da667 100644 --- a/src/internal.c +++ b/src/internal.c @@ -10954,7 +10954,8 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx, ssl->options.usingAltCertChain = 1; } - ret = 0; /* clear error and continue */ + ret = 0; /* clear errors and continue */ + args->verifyErr = 0; } /* do not add to certificate manager */