From: atishkov Date: Tue, 24 Oct 2023 10:25:13 +0000 (+0300) Subject: ssl_lib: added pointer SSL and SSL_CONNECTION check to NULL before dereferencing... X-Git-Tag: openssl-3.3.0-alpha1~767 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b419fccad7e88ff3d7c9fd74b2990952dd09b57a;p=thirdparty%2Fopenssl.git ssl_lib: added pointer SSL and SSL_CONNECTION check to NULL before dereferencing it in ossl_ctrl_internal() Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/22470) --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index e010bb7e30c..d2394ee0dbe 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;