]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: stick-table: fill alignment holes in the stktable struct
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Nov 2022 17:48:11 +0000 (18:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Nov 2022 17:49:55 +0000 (18:49 +0100)
There were two 32-bit holes in the stktable struct surrounding 32-bit
words, so let's just reorder them a little bit to address the issue.

include/haproxy/stick_table-t.h

index cc9fe93576db2674dcc28dd3c57805c9aef9d3b9..176771225f46385b5ec48e0b9a7f9e6b29188dff 100644 (file)
@@ -180,8 +180,8 @@ struct stktable {
        } peers;
 
        unsigned long type;       /* type of table (determines key format) */
-       unsigned int server_key_type; /* What type of key is used to identify servers */
        size_t key_size;          /* size of a key, maximum size in case of string */
+       unsigned int server_key_type; /* What type of key is used to identify servers */
        unsigned int size;        /* maximum number of sticky sessions in table */
        unsigned int current;     /* number of sticky sessions currently in table */
        int nopurge;              /* if non-zero, don't purge sticky sessions when full */