Skip to content

Commit

Permalink
QUIC RSTREAM: Allow pointer to be NULL when calling free
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #19703)
  • Loading branch information
hlandau committed Jan 13, 2023
1 parent cdd3f73 commit 2124779
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ssl/quic/quic_rstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2124779

Please sign in to comment.