From 4d6ca885998f7c397d8224290a32a27967a97c0b Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Thu, 27 Jul 2023 16:06:42 +0100 Subject: [PATCH] QUIC QTLS: Fix NULL dereference (coverity) Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/21565) --- ssl/quic/quic_tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.47.2