]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: fd: release the port range entry in host byte order
authorDragan Dosen <ddosen@haproxy.com>
Fri, 7 Aug 2026 11:08:45 +0000 (11:08 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Aug 2026 11:37:03 +0000 (13:37 +0200)
commite088b0d8e38738ce5cc19a4e3fd44b3d3599c6f5
tree5ce66205a56a78e0be8a3e37bea2e8037c057ab3
parent734a535200630c85ebb75510853234ca5a26fc00
BUG/MEDIUM: fd: release the port range entry in host byte order

The port recovered with getsockname() in _fd_delete_orphan() was given
back to the port range without being converted to host byte order. The
range then fills up with byte-swapped values which are handed out on the
next pass. Both TCP and QUIC are affected.

It is now released using get_host_port(), which takes care of the
conversion for both address families.

The issue was introduced with commit 02b7685013 ("MEDIUM: fd: Remove
fdinfo").

No backport needed.
src/fd.c