From 20391519c3dbc4f894daae37ccd3bdb29c1db013 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. --- 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 99b1d33..507bd09 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; -- 1.7.10.4