From 7814e4c264068d09b3750b838d13a9c8238fa03a Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Tue, 18 Jun 2024 19:53:54 +0200 Subject: [PATCH] DoCertificateStatus: Clean up logic in WOLFSSL_CSR2_OCSP_MULTI --- src/internal.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/internal.c b/src/internal.c index 02b854508e..eb6fd5aa0e 100644 --- a/src/internal.c +++ b/src/internal.c @@ -16093,14 +16093,10 @@ static int DoCertificateStatus(WOLFSSL* ssl, byte* input, word32* inOutIdx, OcspResponse response[1]; #endif - do { - if (ssl->status_request_v2) { - ssl->status_request_v2 = 0; - break; - } - + if (!ssl->status_request_v2) return BUFFER_ERROR; - } while(0); + + ssl->status_request_v2 = 0; #ifdef WOLFSSL_SMALL_STACK status = (CertStatus*)XMALLOC(sizeof(CertStatus), ssl->heap,