[libnftables PATCH] data_reg: xml: fix using bad temp variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a bug. It should use 'utmp' instead of 'tmp'.

Signed-off-by: Arturo Borero Gonzalez <arturo.borrero.glez@xxxxxxxxx>
---
 src/expr/data_reg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/expr/data_reg.c b/src/expr/data_reg.c
index cf74888..71b10fe 100644
--- a/src/expr/data_reg.c
+++ b/src/expr/data_reg.c
@@ -204,7 +204,7 @@ static int nft_data_reg_value_xml_parse(union nft_data_reg *reg, char *xml)
 			mxmlDelete(tree);
 			return -1;
 		}
-		reg->val[i] = tmp;
+		reg->val[i] = utmp;
 	}
 
 	reg->len = sizeof(reg->val);

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




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux