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ý <sashan@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Tue May 26 09:59:05 2026
(Merged from https://github.com/openssl/openssl/pull/31258)
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;