diff --git a/ssl/quic/quic_tls.c b/ssl/quic/quic_tls.c index fd24026fa3..e8d46f5e86 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 {