summaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2022-03-16 14:21:01 +1100
committerPauli <pauli@openssl.org>2022-03-23 11:06:32 +1100
commit09134f183f76539aa1294adfef10fcc694e90267 (patch)
treebecd52ed599553cac96ffc950be013ee740c15b1 /ssl
parent3e35d3a4808526b9586bb87d423d488cf1b18d95 (diff)
downloadopenssl-new-09134f183f76539aa1294adfef10fcc694e90267.tar.gz
Fix Coverity 1498611 & 1498608: uninitialised read
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17893)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index ab56e66e3a..bfa63804e6 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -2232,6 +2232,7 @@ int SSL_shutdown(SSL *s)
if ((s->mode & SSL_MODE_ASYNC) && ASYNC_get_current_job() == NULL) {
struct ssl_async_args args;
+ memset(&args, 0, sizeof(args));
args.s = s;
args.type = OTHERFUNC;
args.f.func_other = s->method->ssl_shutdown;
@@ -3914,6 +3915,7 @@ int SSL_do_handshake(SSL *s)
if ((s->mode & SSL_MODE_ASYNC) && ASYNC_get_current_job() == NULL) {
struct ssl_async_args args;
+ memset(&args, 0, sizeof(args));
args.s = s;
ret = ssl_start_async_job(s, &args, ssl_do_handshake_intern);