diff options
author | Florian Westphal <fw@strlen.de> | 2018-05-08 12:45:25 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-05-10 02:31:05 +0200 |
commit | 652b98e79371102f8e5edf572a7a5c2aa282c51a (patch) | |
tree | 365f9bc3f4a3e0e1a691fe99d7977fb4bf8f4489 /extensions/libxt_udp.t | |
parent | 49f4993313b7a775588ee3dce448c8dbc2624f95 (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/libxt_udp.t')
0 files changed, 0 insertions, 0 deletions