From: Hugo Landau Date: Thu, 27 Jul 2023 15:06:42 +0000 (+0100) Subject: QUIC QTLS: Fix NULL dereference (coverity) X-Git-Tag: openssl-3.2.0-alpha1~234 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d6ca885998f7c397d8224290a32a27967a97c0b;p=thirdparty%2Fopenssl.git QUIC QTLS: Fix NULL dereference (coverity) Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/21565) --- diff --git a/ssl/quic/quic_tls.c b/ssl/quic/quic_tls.c index fd24026fa38..e8d46f5e86b 100644 --- a/ssl/quic/quic_tls.c +++ b/ssl/quic/quic_tls.c @@ -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 {