Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset the rwstate before calling ASYNC_start_job()
If an async job pauses while processing a TLS connection then the rwstate gets set to SSL_ASYNC_PAUSED. When resuming the job we should reset the rwstate back to SSL_NOTHING. In fact we can do this unconditionally since if we're about to call ASYNC_start_job() then either we are about to start the async job for the first time (in which case the rwstate should already by SSL_NOTHING), or we are restarting it after a pause (in which case reseting it to SSL_NOTHING is the correct action). Fixes openssl#16809 Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#17013)
- Loading branch information