From: Hugo Landau Date: Mon, 31 Oct 2022 15:45:54 +0000 (+0000) Subject: QUIC RSTREAM: Allow pointer to be NULL when calling free X-Git-Tag: openssl-3.2.0-alpha1~1520 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=21247795c0c981299efd02bd1dc0034e4c008f67;p=thirdparty%2Fopenssl.git QUIC RSTREAM: Allow pointer to be NULL when calling free Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/19703) --- diff --git a/ssl/quic/quic_rstream.c b/ssl/quic/quic_rstream.c index f8ad8b89de1..669f8d20da6 100644 --- a/ssl/quic/quic_rstream.c +++ b/ssl/quic/quic_rstream.c @@ -33,6 +33,9 @@ QUIC_RSTREAM *ossl_quic_rstream_new(QUIC_RXFC *rxfc, void ossl_quic_rstream_free(QUIC_RSTREAM *qrs) { + if (qrs == NULL) + return; + ossl_sframe_list_destroy(&qrs->fl); OPENSSL_free(qrs); }