]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix reallocation failure condition in qtx_resize_txe()
authorNiels Dossche <niels.dossche@ugent.be>
Thu, 21 Aug 2025 11:24:01 +0000 (13:24 +0200)
committerNeil Horman <nhorman@openssl.org>
Fri, 22 Aug 2025 13:26:05 +0000 (09:26 -0400)
commit8083328b52ae8f422ea0795be9a9d287da0fdc95
treec72d351e514ba0bb9949bc200c08b7ff64eb2c4c
parente036da34fe8d21407290ec16b382d6db7f2ef687
Fix reallocation failure condition in qtx_resize_txe()

Returning the same pointer does not mean that the reallocation failed,
it would also prevent updating alloc_len down below.
This is similar code and a similar change to 043a41ddee.

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28317)

(cherry picked from commit 220f5be6908631759d56c7a6458be8385d984260)
ssl/quic/quic_record_tx.c