From a6378de4f0eee4771cf13712afb13cf9d7ccc88b Mon Sep 17 00:00:00 2001 From: Hayden Roche Date: Thu, 10 Dec 2020 10:09:09 -0600 Subject: [PATCH] Fix OCSP cert status check in internal.c I missed one line in internal.c when I recently modified the OCSP ASN code. --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 2b245ea96..665aa8591 100644 --- a/src/internal.c +++ b/src/internal.c @@ -11919,7 +11919,7 @@ static int DoCertificateStatus(WOLFSSL* ssl, byte* input, word32* inOutIdx, if ((OcspResponseDecode(response, ssl->ctx->cm, ssl->heap, 0) != 0) || (response->responseStatus != OCSP_SUCCESSFUL) - || (response->single->status != CERT_GOOD)) + || (response->single->status->status != CERT_GOOD)) ret = BAD_CERTIFICATE_STATUS_ERROR; while (ret == 0) {