[libnftables PATCH] data_reg: xml: delete unreachable code in _veredict_xml_parse()

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

 



This code was unreachable.

There was a similar commit fixing a similar code which didn't fix this (414ac29).

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

diff --git a/src/expr/data_reg.c b/src/expr/data_reg.c
index a7511a7..5eb7f38 100644
--- a/src/expr/data_reg.c
+++ b/src/expr/data_reg.c
@@ -76,8 +76,6 @@ static int nft_data_reg_verdict_xml_parse(union nft_data_reg *reg, char *xml)
 
 	mxmlDelete(tree);
 	return 0;
-	errno = EOPNOTSUPP;
-	return -1;
 }
 
 static int nft_data_reg_chain_xml_parse(union nft_data_reg *reg, char *xml)

--
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