From: Giuseppe Longo <giuseppelng@gmail.com>
To: netfilter-devel@vger.kernel.org
Cc: Giuseppe Longo <giuseppelng@gmail.com>
Subject: [iptables-nftables PATCH] nft: initialize flags in nft_arp_parse_meta
Date: Thu, 3 Oct 2013 16:31:39 +0200 [thread overview]
Message-ID: <1380810699-2872-1-git-send-email-giuseppelng@gmail.com> (raw)
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(-)
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,
--
1.7.8.6
next reply other threads:[~2013-10-03 14:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-03 14:31 Giuseppe Longo [this message]
2013-10-03 16:06 ` [iptables-nftables PATCH] nft: initialize flags in nft_arp_parse_meta Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1380810699-2872-1-git-send-email-giuseppelng@gmail.com \
--to=giuseppelng@gmail.com \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).