From: Jakub Zelenka Date: Wed, 20 May 2026 17:11:40 +0000 (+0200) Subject: ssl/quic/quic_ackm.c: fix unhandled memory failure in tx pkt history map insert X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=04cf7eb7b96cc37d05263d78bd2c0726b0c840e4;p=thirdparty%2Fopenssl.git ssl/quic/quic_ackm.c: fix unhandled memory failure in tx pkt history map insert This can cause error when freeing txpim as it can be still in use so the assert in it fails. Fixes: fa4e92a70a5f "QUIC ACK Manager, Statistics Manager and Congestion Control API" Reviewed-by: Saša Nedvědický Reviewed-by: Nikola Pajkovsky Reviewed-by: Eugene Syromiatnikov MergeDate: Tue May 26 09:59:05 2026 (Merged from https://github.com/openssl/openssl/pull/31258) --- diff --git a/ssl/quic/quic_ackm.c b/ssl/quic/quic_ackm.c index 503a6eae19e..3d419c478ba 100644 --- a/ssl/quic/quic_ackm.c +++ b/ssl/quic/quic_ackm.c @@ -117,6 +117,8 @@ tx_pkt_history_add_actual(struct tx_pkt_history_st *h, return 0; lh_OSSL_ACKM_TX_PKT_insert(h->map, pkt); + if (lh_OSSL_ACKM_TX_PKT_error(h->map)) + return 0; ossl_list_tx_history_insert_tail(&h->packets, pkt); return 1;