From d5036411eb9801367c635d851b86112b9f205e85 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 2 Jan 2023 17:35:50 +0100 Subject: [PATCH] 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. (cherry picked from commit 20391519c3dbc4f894daae37ccd3bdb29c1db013) Signed-off-by: Willy Tarreau (cherry picked from commit 59bf319279b1457c6f01b160764e79c27a5808c9) Signed-off-by: Christopher Faulet --- src/stick_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stick_table.c b/src/stick_table.c index 24324137b..6eea7cbbb 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -2483,7 +2483,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;