[openssl] OpenSSL_1_1_1-stable update
Matt Caswell
matt at openssl.org
Mon Nov 15 14:54:34 UTC 2021
The branch OpenSSL_1_1_1-stable has been updated
via ce287b72e49a2b064550508631d638124f85e693 (commit)
from 45838e536c08c74e68536501d6dc2ef9f4d499da (commit)
- Log -----------------------------------------------------------------
commit ce287b72e49a2b064550508631d638124f85e693
Author: Matt Caswell <matt at openssl.org>
Date: Thu Nov 11 16:59:43 2021 +0000
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 #16809
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17013)
(cherry picked from commit 07f620e3acf0dd76a3a03ada9911c544aa483aa7)
-----------------------------------------------------------------------
Summary of changes:
ssl/ssl_lib.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index ffd0a0bc6d..9c411a3293 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -1684,6 +1684,8 @@ static int ssl_start_async_job(SSL *s, struct ssl_async_args *args,
if (s->waitctx == NULL)
return -1;
}
+
+ s->rwstate = SSL_NOTHING;
switch (ASYNC_start_job(&s->job, s->waitctx, &ret, func, args,
sizeof(struct ssl_async_args))) {
case ASYNC_ERR:
More information about the openssl-commits
mailing list