Skip to contentSkip to conversation

log: define variable flags in xml parser

PATCH In review Alvaro Neira Ayuso 2 participants 2 messages Jul 14, 2014 – Jul 15, 2014 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 log: define variable flags in xml parser

From: Álvaro Neira Ayuso <[email protected]>

In the xml parser, we have used a variable flags for parsing it but we have forgot define it. This patch solves a compile error like:

expr/log.c:263:12: error: 'flags' undeclared (first use in this function)

---
 src/expr/log.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/expr/log.c +1 -1
index 740db03..bc70eca 100644
@@ -233,7 +233,7 @@ static int nft_rule_expr_log_xml_parse(struct nft_rule_expr *e,
 {
 #ifdef XML_PARSING
 	const char *prefix;
-	uint32_t snaplen, level;
+	uint32_t snaplen, level, flags;
 	uint16_t group, qthreshold;
 
 	prefix = nft_mxml_str_parse(tree, "prefix", MXML_DESCEND_FIRST,
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 7 lines · Alvaro Neira Ayuso

From: Álvaro Neira Ayuso <[email protected]>

In the xml parser, we have used a variable flags for parsing it but we have forgot define it. This patch solves a compile error like:

expr/log.c:263:12: error: 'flags' undeclared (first use in this function)

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