diff options
author | Phil Sutter <phil@nwl.cc> | 2019-10-22 22:49:29 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-10-30 10:00:57 +0100 |
commit | 45989e8fbec52fcbafa5ae9917fc2a0d62e3640d (patch) | |
tree | a39778ab0d5875aec2f2e2c6a4d3f465006f248f /libxtables | |
parent | 8e502b02ef911cb8c05ea58acd7e2a4c397d1831 (diff) |
xshared: Share a common add_command() implementation
The shared definition of cmdflags is a super set of the previous one in
xtables-arp.c so while not being identical, they're compatible.
Avoid accidental array overstep in cmd2char() by incrementing an index
variable and checking its final value before using it as such.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'libxtables')
0 files changed, 0 insertions, 0 deletions