Skip to content

Commit 3e58cfd

Browse files
committed
fixup! ocsp: improvements
1 parent fe932b8 commit 3e58cfd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/internal.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16198,7 +16198,7 @@ static int DoCertificateStatus(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1619816198
|| (response->single->status->status != CERT_GOOD))
1619916199
ret = BAD_CERTIFICATE_STATUS_ERROR;
1620016200

16201-
while (ret == 0) {
16201+
if (ret == 0) {
1620216202
request = (OcspRequest*)TLSX_CSR2_GetRequest(
1620316203
ssl->extensions, status_type, idx);
1620416204

@@ -16211,7 +16211,6 @@ static int DoCertificateStatus(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1621116211
else {
1621216212
if (idx == 0) /* server cert must be OK */
1621316213
endCertificateOK = 1;
16214-
break;
1621516214
}
1621616215
}
1621716216

0 commit comments

Comments
 (0)