QUIC QTLS: Fix NULL dereference (coverity)

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565)
This commit is contained in:
Hugo Landau 2023-07-27 16:06:42 +01:00
parent b538ae4fbf
commit 4d6ca88599

View File

@ -14,9 +14,9 @@
#define QUIC_TLS_FATAL(rl, ad, err) \
do { \
(rl)->alert = (ad); \
if ((rl) != NULL) (rl)->alert = (ad); \
ERR_raise(ERR_LIB_SSL, (err)); \
(rl)->qtls->inerror = 1; \
if ((rl) != NULL) (rl)->qtls->inerror = 1; \
} while(0)
struct quic_tls_st {