From c44b8de9959081fa6df511f9548f3031205ce6ee Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Sat, 6 Mar 2021 20:06:47 +0100 Subject: [PATCH] CLEANUP: connection: Use `VAR_ARRAY` in `struct tlv` definition This is for consistency with `struct tlv_ssl`. --- include/haproxy/connection-t.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/haproxy/connection-t.h b/include/haproxy/connection-t.h index 9c2af7b8f9..0bcceacff9 100644 --- a/include/haproxy/connection-t.h +++ b/include/haproxy/connection-t.h @@ -649,7 +649,7 @@ struct tlv { uint8_t type; uint8_t length_hi; uint8_t length_lo; - uint8_t value[0]; + uint8_t value[VAR_ARRAY]; }__attribute__((packed)); struct tlv_ssl { -- 2.39.5