Fix for the WOLFSSL_NONBLOCK_OCSP
case to reset the error code as well.
This commit is contained in:
parent
5904a97378
commit
a0608151cf
@ -10913,7 +10913,7 @@ static int DoHandShakeMsgType(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
||||
}
|
||||
|
||||
/* make sure async error is cleared */
|
||||
if (ret == 0 && ssl->error == WC_PENDING_E) {
|
||||
if (ret == 0 && (ssl->error == WC_PENDING_E || ssl->error == OCSP_WANT_READ)) {
|
||||
ssl->error = 0;
|
||||
}
|
||||
#endif /* WOLFSSL_ASYNC_CRYPT || WOLFSSL_NONBLOCK_OCSP */
|
||||
|
Loading…
x
Reference in New Issue
Block a user