]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Add a BUG_ON() on quic_tx_packet refcount
authorFrederic Lecaille <flecaille@haproxy.com>
Tue, 21 Jan 2025 15:12:05 +0000 (16:12 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Tue, 21 Jan 2025 21:01:34 +0000 (22:01 +0100)
commit4f38c4bfd8c07331258b4b13111a07c7b3013021
treef72fa86fdee5a03e2750560e5327b6e706d87449
parentcb729fb64d18815fd73e48d24f0d58a830aee63c
MINOR: quic: Add a BUG_ON() on quic_tx_packet refcount

This is definitively a bug to call quic_tx_packet_refdec() to decrement the reference
counter of a TX packet calling quic_tx_packet_refdec(), and possibly to release its
memory when it is negative or null.

This counter is incremented when a TX frm is attached to it with some allocated memory
and when the packet is inserted into a data structure, if needed (list or tree).

Should be easily backported as far as 2.6 to ease any further backport around
this code part.
include/haproxy/quic_tx.h