app_http_tls_cb(): fix crash on inconsistency w.r.t. use of TLS
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Tue, 28 Jun 2022 09:30:50 +0000 (11:30 +0200)
committerHugo Landau <hlandau@openssl.org>
Wed, 6 Jul 2022 07:21:53 +0000 (08:21 +0100)
commit96e13a1679872d879683346c1e09ca227f77efb0
treeb8655615c810e608506cd34ba2197b286888ccdf
parent33478aedafaff1f414cabd67fb30970c41996f5c
app_http_tls_cb(): fix crash on inconsistency w.r.t. use of TLS

This happens if use_ssl is not set but an SSL_CTX is provided.

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/18674)
apps/lib/apps.c