From db52d9087a27686bdfbe438aacf968e04b36f9d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 17 May 2019 10:12:52 +0200 Subject: [PATCH] MINOR: cfgparse: Space allocation for "server_name" stick-table data type. When parsing sticking rules, with this patch we reserve some room for the new "server_name" stick-table data type, as this is already done for "server_id", setting the offset and used space (in bytes) in the stick-table entry thanks to stkable_alloc_data_type(). --- src/cfgparse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cfgparse.c b/src/cfgparse.c index 8c8ac04a2..5b5941322 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2715,6 +2715,7 @@ int check_config_validity() free((void *)mrule->table.name); mrule->table.t = target; stktable_alloc_data_type(target, STKTABLE_DT_SERVER_ID, NULL); + stktable_alloc_data_type(target, STKTABLE_DT_SERVER_NAME, NULL); } } @@ -2748,6 +2749,7 @@ int check_config_validity() free((void *)mrule->table.name); mrule->table.t = target; stktable_alloc_data_type(target, STKTABLE_DT_SERVER_ID, NULL); + stktable_alloc_data_type(target, STKTABLE_DT_SERVER_NAME, NULL); } }