diff mbox

[iptables-nftables] nft: initialize flags in nft_arp_parse_meta

Message ID 1380810699-2872-1-git-send-email-giuseppelng@gmail.com
State Accepted
Headers show

Commit Message

Giuseppe Longo Oct. 3, 2013, 2:31 p.m. UTC
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(-)

Comments

Pablo Neira Ayuso Oct. 3, 2013, 4:06 p.m. UTC | #1
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
diff mbox

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,