mirror of
https://github.com/openssl/openssl.git
synced 2024-11-23 18:13:39 +08:00
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)
This commit is contained in:
parent
7fa216095a
commit
bf762f9203
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user