diff options
author | Phil Sutter <phil@nwl.cc> | 2018-09-19 15:17:02 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-09-24 11:49:52 +0200 |
commit | 47fb86cef5f4da6ee86100e410212b7b54e4800c (patch) | |
tree | 55fb951f28ebb705fb9e47b1c026a36fbb73d654 /iptables/nft-arp.c | |
parent | 80aae9b3b784ffdea3624117c548d500c56f24d9 (diff) |
nft-arp: Drop ineffective conditional
Since fw->arp.arhln is of type __u8, its value will never become less
than zero.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-arp.c')
-rw-r--r-- | iptables/nft-arp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c index 7332b619..b8e89826 100644 --- a/iptables/nft-arp.c +++ b/iptables/nft-arp.c @@ -330,9 +330,6 @@ static void nft_arp_parse_payload(struct nft_xt_ctx *ctx, fw->arp.invflags |= ARPT_INV_ARPOP; break; default: - if (fw->arp.arhln < 0) - break; - if (ctx->payload.offset == sizeof(struct arphdr) + fw->arp.arhln) { get_cmp_data(e, &addr, sizeof(addr), &inv); |