forked from wolfSSL/wolfssl
Fix for the WOLFSSL_NONBLOCK_OCSP
case to reset the error code as well.
This commit is contained in:
@@ -10913,7 +10913,7 @@ static int DoHandShakeMsgType(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* make sure async error is cleared */
|
/* 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;
|
ssl->error = 0;
|
||||||
}
|
}
|
||||||
#endif /* WOLFSSL_ASYNC_CRYPT || WOLFSSL_NONBLOCK_OCSP */
|
#endif /* WOLFSSL_ASYNC_CRYPT || WOLFSSL_NONBLOCK_OCSP */
|
||||||
|
Reference in New Issue
Block a user