diff options
author | Roi Dayan <roid@nvidia.com> | 2022-12-07 10:22:13 +0200 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2022-12-07 08:56:30 -0800 |
commit | 4de59102f49ff9128378568cf967d6c7aabea6f2 (patch) | |
tree | ca9d02764909b31db3d071835d5fc1b84d6d4c3d /tc | |
parent | 68db921a0a0a96383136900db3c6e7a96fe3b349 (diff) | |
download | iproute2-4de59102f49ff9128378568cf967d6c7aabea6f2.tar.gz |
tc: ct: Fix invalid pointer dereference
Using macro NEXT_ARG_FWD does not validate argc.
Use macro NEXT_ARG which validates argc while parsing args
in the same loop iteration.
Fixes: c8a494314c40 ("tc: Introduce tc ct action")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'tc')
-rw-r--r-- | tc/m_ct.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -243,7 +243,7 @@ parse_ct(struct action_util *a, int *argc_p, char ***argv_p, int tca_id, return -1; } - NEXT_ARG_FWD(); + NEXT_ARG(); if (matches(*argv, "port") != 0) continue; |