]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stick-table: report the correct action name in error message
authorWilly Tarreau <w@1wt.eu>
Mon, 2 Jan 2023 16:35:50 +0000 (17:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 2 Jan 2023 16:35:50 +0000 (17:35 +0100)
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

index 99b1d3334605d49260f27876df7b0416d3f209c8..507bd094a21b43f88d695a2bd16f0a70ab6ee55e 100644 (file)
@@ -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(<GPC ID>,<Track ID>)", args[*arg-1]);
+               memprintf(err, "invalid gpc ID '%s'. Expects sc-inc-gpc(<GPC ID>,<Track ID>)", args[*arg-1]);
                return ACT_RET_PRS_ERR;
        }
        rule->action = ACT_CUSTOM;