Skip to content

Commit

Permalink
DoCertificateStatus: Clean up logic in WOLFSSL_CSR2_OCSP_MULTI
Browse files Browse the repository at this point in the history
  • Loading branch information
julek-wolfssl authored and rizlik committed Jul 1, 2024
1 parent dabfad9 commit 7814e4c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7814e4c

Please sign in to comment.