From: Willy Tarreau Date: Mon, 2 Jan 2023 16:35:50 +0000 (+0100) Subject: BUG/MINOR: stick-table: report the correct action name in error message X-Git-Tag: v2.8-dev1~25 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=20391519c3dbc4f894daae37ccd3bdb29c1db013;p=thirdparty%2Fhaproxy.git BUG/MINOR: stick-table: report the correct action name in error message sc-inc-gpc() learned to use arrays in 2.5 with commit 4d7ada8f9 ("MEDIUM: stick-table: add the new arrays of gpc and gpc_rate"), but the error message says "sc-set-gpc" instead of "sc-inc-gpc". Let's fix this to avoid confusion. This can be backported to 2.5. --- diff --git a/src/stick_table.c b/src/stick_table.c index 99b1d33346..507bd094a2 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -2579,7 +2579,7 @@ static enum act_parse_ret parse_inc_gpc(const char **args, int *arg, struct prox } else { /* default stick table id. */ - memprintf(err, "invalid gpc ID '%s'. Expects sc-set-gpc(,)", args[*arg-1]); + memprintf(err, "invalid gpc ID '%s'. Expects sc-inc-gpc(,)", args[*arg-1]); return ACT_RET_PRS_ERR; } rule->action = ACT_CUSTOM;