summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-save.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-05-08 12:45:25 +0200
committerFlorian Westphal <fw@strlen.de>2018-05-10 02:31:05 +0200
commit652b98e79371102f8e5edf572a7a5c2aa282c51a (patch)
tree365f9bc3f4a3e0e1a691fe99d7977fb4bf8f4489 /iptables/xtables-save.c
parent49f4993313b7a775588ee3dce448c8dbc2624f95 (diff)
xtables-compat: fix wildcard detection
if (outiface[len] == '\0') is always true. 'eth+' is stored as 'eth' with length 3, so "eth"[3] == 0. 'eth' is stored as 'eth\0' with length 4, so "eth\0"[4] is also true. Add a helper for this, then use it. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/xtables-save.c')
0 files changed, 0 insertions, 0 deletions