nft: initialize flags in nft_arp_parse_meta
PATCH 1/1 nft: initialize flags in nft_arp_parse_meta
This small patch initialize the flags in nft_arp_parse_meta, now the nft_arp_rule_find is working properly.
Signed-off-by Giuseppe Longo <[email protected]>
--- iptables/nft-arp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
iptables/nft-arp.c +1 -1
@@ -267,7 +267,7 @@ static void nft_arp_parse_meta(struct nft_rule_expr *e, uint8_t key, void *data) {struct arpt_entry *fw = data; -uint8_t flags; +uint8_t flags =0 ; parse_meta(e, key, fw->arp.iniface, fw->arp.iniface_mask, fw->arp.outiface, fw->arp.outiface_mask,
Signature · 1 line
1.7.8.6
Quoted 2 lines · Giuseppe Longo
This small patch initialize the flags in
nft_arp_parse_meta, now thenft_arp_rule_findis working properly.
Applied, thanks.