]> git.ipfire.org Git - thirdparty/openssl.git/commit
ssl/ssl_lib.c: Avoid crash when SSL_CONNECTION is NULL
authorGraham Leggett <minfrin@sharp.fm>
Wed, 2 Apr 2025 11:08:11 +0000 (12:08 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 14 Apr 2025 14:38:06 +0000 (15:38 +0100)
commitd2f2eafa7f1d82ceda7b1c324f4c51a25a7ff3fa
treedf0a48cf100e4b7dd27b894192f1f92bf019ab52
parent18ecffdb021055fbf91b3b8b3f9016f3d369c34b
ssl/ssl_lib.c: Avoid crash when SSL_CONNECTION is NULL

Detection for sc == NULL is performed after sc is used. Add the
check to the correct place.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/27241)

(cherry picked from commit 7f6cc862c69800a72c49fcfe89e2931ee4ca2e7a)
ssl/ssl_lib.c