immediate: xml: fix name inconsistency
PATCH 1/1 immediate: xml: fix name inconsistency
<immdata> must be <immediatedata>.
This bug was introduced at (1e8e5d4 src: xml: consolidate parsing of data_reg via nft_mxml_data_reg_parse).
Signed-off-by Arturo Borrero Gonzalez <[email protected]>
--- src/expr/immediate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
src/expr/immediate.c +2 -1
@@ -192,7 +192,8 @@ nft_rule_expr_immediate_xml_parse(struct nft_rule_expr *e, mxml_node_t *tree) imm->dreg = reg; e->flags |= (1 <<NFT_EXPR_IMM_DREG ); - datareg_type =nft_mxml_data_reg_parse (tree,"immdata" , &imm->data); + datareg_type =nft_mxml_data_reg_parse (tree,"immediatedata" , + &imm->data);if (datareg_type <0 )return -1 ;
Pablo Neira Ayuso
maintainerQuoted 4 lines · Arturo Borrero Gonzalez
<immdata> must be <immediatedata>.
This bug was introduced at (1e8e5d4 src: xml: consolidate parsing of
data_regvianft_mxml_data_reg_parse).
Also applied, thanks.