BUG/MEDIUM: server: properly initialize PROXY v2 TLVs
authorDragan Dosen <ddosen@haproxy.com>
Wed, 26 Feb 2025 18:13:31 +0000 (19:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Mar 2025 15:21:52 +0000 (16:21 +0100)
commit0611689f40a34dce52b70996a2ff7500c492bc8c
treea58b6f3c568ea6a8858c9170d05fcef46d5b0e9f
parent226f50cbd40d3f24b6f85eac53ff94ea6f59da7a
BUG/MEDIUM: server: properly initialize PROXY v2 TLVs

The PROXY v2 TLVs were not properly initialized when defined with
"set-proxy-v2-tlv-fmt" keyword, which could have caused a crash when
validating the configuration or malfunction (e.g. when used in
combination with "server-template" and/or "default-server").

The issue was introduced with commit 6f4bfed3a ("MINOR: server: Add
parser support for set-proxy-v2-tlv-fmt").

This should be backported up to 2.9.

(cherry picked from commit 6838fe43a320cf090892451ee907967666b626e5)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 77b48b2ae0dba907115c304ea78187a0f77e60c0)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/server.c