]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic/server: free quic_retry_token on srv drop
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 24 Nov 2025 13:25:14 +0000 (14:25 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 25 Nov 2025 13:30:18 +0000 (14:30 +0100)
commit4b596c1ea897edb6984b66997bd3d2d982c09488
treee330b62889d82b2757b7559e80dd0c6ece8ff59e
parentcbfe574d8adf9f2b1e500c9740d38070db0b93dc
BUG/MINOR: quic/server: free quic_retry_token on srv drop

A recent patch has implemented caching of QUIC token received from a
NEW_TOKEN frame into the server cache. This value is stored per thread
into a <quic_retry_token> field.

This field is an ist, first set to an empty string. Via
qc_try_store_new_token(), it is reallocated to fit the size of the newly
stored token. Prior to this patch, the field was never freed so this
causes a memory leak.

Fix this by using istfree() on <quic_retry_token> field during
srv_drop().

No need to backport.
src/server.c