]> git.ipfire.org Git - thirdparty/openssl.git/commit
set_client_ciphersuite(): Fix for potential UB if session->cipher is NULL
authorAlexey Fofanov <avoget@gmail.com>
Wed, 18 Oct 2023 11:23:22 +0000 (14:23 +0300)
committerTomas Mraz <tomas@openssl.org>
Mon, 13 Nov 2023 11:52:43 +0000 (12:52 +0100)
commit9890cc42daff5e2d0cad01ac4bf78c391f599a6e
tree8eddee8dfdb5f3fe35238065fbeea551958b2245
parentae9fe65d9f85e027bd7428e0f84aa46ab368880e
set_client_ciphersuite(): Fix for potential UB if session->cipher is NULL

This currently cannot happen without an application overriding
the session with some bogus data so this is an ossl_assert()
check.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22418)
ssl/statem/statem_clnt.c