Skip to contentSkip to conversation

nft: initialize flags in nft_arp_parse_meta

PATCH Applied Giuseppe Longo 2 participants 2 messages Oct 3, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

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.

---
 iptables/nft-arp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
iptables/nft-arp.c +1 -1
index cf8fe28..3d753c2 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 2 lines · Giuseppe Longo

This small patch initialize the flags in nft_arp_parse_meta, now the nft_arp_rule_find is working properly.

Applied, thanks.