]> 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:41:28 +0000 (15:41 +0100)
commit69272362bd9ec59bc0afe63b907c8a0a54e0ae9c
treecf67ee6f68d62b6e1b53fa29dd5cfada2964c538
parent78882cc96511822a7abce3cf2d7d8d268bfc4029
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