summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authoratishkov <a.tishkov@aladdin.ru>2023-10-24 12:25:13 +0200
committerHugo Landau <hlandau@openssl.org>2023-10-26 16:43:08 +0200
commitb419fccad7e88ff3d7c9fd74b2990952dd09b57a (patch)
treec8792781b207c08fc8132f3266e3ae6f1b433da2 /ssl
parentssl_lib: added pointer SSL and SSL_CONNECTION check to NULL before dereferenc... (diff)
downloadopenssl-b419fccad7e88ff3d7c9fd74b2990952dd09b57a.tar.xz
openssl-b419fccad7e88ff3d7c9fd74b2990952dd09b57a.zip
ssl_lib: added pointer SSL and SSL_CONNECTION check to NULL before dereferencing it in ossl_ctrl_internal()
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22470)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index e010bb7e30..d2394ee0db 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -2928,7 +2928,7 @@ long ossl_ctrl_internal(SSL *s, int cmd, long larg, void *parg, int no_quic)
if (!no_quic && IS_QUIC(s))
return s->method->ssl_ctrl(s, cmd, larg, parg);
- SSL_CONNECTION* sc = SSL_CONNECTION_FROM_SSL(s);
+ SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(s);
if (sc == NULL)
return 0;