Patchwork [iptables-nftables] nft: initialize flags in nft_arp_parse_meta

login
register
mail settings
Submitter Giuseppe Longo
Date Oct. 3, 2013, 2:31 p.m.
Message ID <1380810699-2872-1-git-send-email-giuseppelng@gmail.com>
Download mbox | patch
Permalink /patch/280346/
State Accepted
Headers show

Comments

Giuseppe Longo - Oct. 3, 2013, 2:31 p.m.
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 <giuseppelng@gmail.com>
---
 iptables/nft-arp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Pablo Neira - Oct. 3, 2013, 4:06 p.m.
On Thu, Oct 03, 2013 at 04:31:39PM +0200, Giuseppe Longo wrote:
> This small patch initialize the flags in nft_arp_parse_meta,
> now the nft_arp_rule_find is working properly.

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c
index cf8fe28..3d753c2 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,