diff options
author | Tomas Mraz <tomas@openssl.org> | 2023-03-01 10:28:58 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-03-06 12:26:16 +0100 |
commit | bf762f9203d3b5541c21f2b376750e32ebf36651 (patch) | |
tree | 4c6a2624cc494dfcbbc0ce598a8addc0a150f5b6 /ssl | |
parent | 7fa216095a7ebcfa8fbf9f6143b0fb336e77c964 (diff) |
stream_frame_new(): Add missing allocation check
Reported by Marc Schönefeld.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19794)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/quic/quic_sf_list.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/quic/quic_sf_list.c b/ssl/quic/quic_sf_list.c index 56803b2a97..b53cbc1739 100644 --- a/ssl/quic/quic_sf_list.c +++ b/ssl/quic/quic_sf_list.c @@ -29,6 +29,9 @@ static STREAM_FRAME *stream_frame_new(UINT_RANGE *range, OSSL_QRX_PKT *pkt, { STREAM_FRAME *sf = OPENSSL_zalloc(sizeof(*sf)); + if (sf == NULL) + return NULL; + if (pkt != NULL) ossl_qrx_pkt_up_ref(pkt); |