]> 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:25:54 +0000 (09:25 -0400)
commite1c6bc1ba372ea46cf37964f1bbfd29e6099f401
tree76a5da583760a7ba09b8c7dd1caeb7f385ea7e8b
parent26ea7076f53573cc0fc9544c1785d3b4145111ee
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