]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: connection: fix build on clang after the VAR_ARRAY cleanup
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Sep 2020 06:43:51 +0000 (08:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Sep 2020 06:43:51 +0000 (08:43 +0200)
commit441b6c31e9d8e45ecf09379ff7494743889f36fd
treed4c3bba6a6e3ee2786cad0d8423350f6a52f78a0
parent4987a474469d6c7c50ea2a8997cdd79f5059cb0c
BUILD: connection: fix build on clang after the VAR_ARRAY cleanup

Commit 4987a4744 ("CLEANUP: tree-wide: use VAR_ARRAY instead of [0] in
various definitions") broke the build on clang due to the tlv field used
to receive/send the proxy protocol. The problem is that struct tlv is
included at the beginning of struct tlv_ssl, which doesn't make much
sense. In fact the value[] array isn't really a var array but just an
end of struct marker, and must really be an array of size zero.
include/haproxy/connection-t.h