summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_ttl.txlate
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 /extensions/libipt_ttl.txlate
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 'extensions/libipt_ttl.txlate')
0 files changed, 0 insertions, 0 deletions