From: Frédéric Lécaille Date: Fri, 17 May 2019 08:12:52 +0000 (+0200) Subject: MINOR: cfgparse: Space allocation for "server_name" stick-table data type. X-Git-Tag: v2.0-dev6~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db52d9087a27686bdfbe438aacf968e04b36f9d4;p=thirdparty%2Fhaproxy.git 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(). --- diff --git a/src/cfgparse.c b/src/cfgparse.c index 8c8ac04a27..5b5941322d 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); } }