Skip to contentSkip to conversation

data_reg: xml: fix using bad temp variable

PATCH Applied Arturo Borrero 2 participants 2 messages May 29, 2013 – Jun 5, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 data_reg: xml: fix using bad temp variable

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

---
 src/expr/data_reg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/expr/data_reg.c +1 -1
index cf74888..71b10fe 100644
@@ -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);
maintainer Applied
#1 lore raw
Quoted 1 line · Arturo Borrero

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

Applied, thanks.