Skip to content

Commit 8d0c8a5

Browse files
Merge pull request #458 from ejohnstown/ocsp-fix
OCSP Fix
2 parents 66be47a + 8ef49e1 commit 8d0c8a5

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)