]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: quic: fix possible exit from qc_check_dcid() without unlocking
authorWilly Tarreau <w@1wt.eu>
Sun, 30 Jun 2024 04:23:30 +0000 (06:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 1 Jul 2024 08:29:31 +0000 (10:29 +0200)
commit192abc6f834dcd09f310299afe253b17f9985407
treee1c30052e930e57e7797d8a81bafa446d869cfbe
parent6d943b8db67922888194fd4d3a6372e545a5b1ac
BUG/MEDIUM: quic: fix possible exit from qc_check_dcid() without unlocking

Locking of the CID tree was extended in qc_check_dcid() by recent commit
05f59a5 ("BUG/MINOR: quic: fix race condition in qc_check_dcid()") but
there was a direct return from the middle of the function which was not
covered by the unlock, resulting in the function keeping the lock on
success return.

Let's just remove this return and replace it with a variable to merge all
exit paths.

This must be backported wherever the fix above is backported.
src/quic_conn.c