Skip to content

Commit 8ef49e1

Browse files
committed
OCSP
The clause where we read the size of the OCSP blob and skip it, needs to make sure there isn't an existing error. (ZD 14803)
1 parent 66be47a commit 8ef49e1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/internal.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3361,10 +3361,12 @@ static int ParseAndVerifyCert(WOLFSSH* ssh, byte* in, word32 inSz,
33613361
}
33623362
}
33633363

3364-
/* @TODO handle OCSP's */
3365-
if (ocspCount > 0) {
3366-
WLOG(WS_LOG_INFO, "Peer sent OCSP's, not yet handled");
3367-
ret = GetSize(&l, ocspBuf, ocspBufSz, &m);
3364+
if (ret == WS_SUCCESS) {
3365+
/* @TODO handle OCSP's */
3366+
if (ocspCount > 0) {
3367+
WLOG(WS_LOG_INFO, "Peer sent OCSP's, not yet handled");
3368+
ret = GetSize(&l, ocspBuf, ocspBufSz, &m);
3369+
}
33683370
}
33693371
}
33703372

0 commit comments

Comments
 (0)