From e55b3e367129cee58a3b2754d6882efeeccd1b9f Mon Sep 17 00:00:00 2001 From: Giuseppe Longo Date: Thu, 3 Oct 2013 16:31:39 +0200 Subject: nft: arp: 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 Signed-off-by: Pablo Neira Ayuso --- iptables/nft-arp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/nft-arp.c') diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c index 04600662..570962d3 100644 --- a/iptables/nft-arp.c +++ b/iptables/nft-arp.c @@ -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, -- cgit v1.2.3