Skip to content

Commit 7814e4c

Browse files
julek-wolfsslrizlik
authored andcommitted
DoCertificateStatus: Clean up logic in WOLFSSL_CSR2_OCSP_MULTI
1 parent dabfad9 commit 7814e4c

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/internal.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16093,14 +16093,10 @@ static int DoCertificateStatus(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1609316093
OcspResponse response[1];
1609416094
#endif
1609516095

16096-
do {
16097-
if (ssl->status_request_v2) {
16098-
ssl->status_request_v2 = 0;
16099-
break;
16100-
}
16101-
16096+
if (!ssl->status_request_v2)
1610216097
return BUFFER_ERROR;
16103-
} while(0);
16098+
16099+
ssl->status_request_v2 = 0;
1610416100

1610516101
#ifdef WOLFSSL_SMALL_STACK
1610616102
status = (CertStatus*)XMALLOC(sizeof(CertStatus), ssl->heap,

0 commit comments

Comments
 (0)