1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 Date: Mon, 29 Jan 2018 11:50:55 +0100
4 Subject: [PATCH iproute2] police: don't skip parameters after actions
6 The 'parse_action_control()' helper advances the argument
7 pointers to past its parsed action already, so don't
8 advance it further in 'act_parse_polic()'.
10 Fixes: e67aba559581 ("tc: actions: add helpers to parse and print control actions")
11 Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
13 tc/m_police.c | 4 +++-
14 1 file changed, 3 insertions(+), 1 deletion(-)
16 diff --git a/tc/m_police.c b/tc/m_police.c
17 index ff1dcb7d..f0878b3a 100644
20 @@ -154,6 +154,7 @@ int act_parse_police(struct action_util *a, int *argc_p, char ***argv_p,
21 matches(*argv, "goto") == 0) {
22 if (parse_action_control(&argc, &argv, &p.action, false))
25 } else if (strcmp(*argv, "conform-exceed") == 0) {
27 if (parse_action_control_slash(&argc, &argv, &p.action,
28 @@ -174,8 +175,9 @@ int act_parse_police(struct action_util *a, int *argc_p, char ***argv_p,