[NETFILTER]: x_tables: fix xt_register_table error propagation

When xt_register_table fails the error is not properly propagated back.
Based on patch by Lepton Wu <ytht.net@gmail.com>.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
这个提交包含在:
Patrick McHardy
2006-06-27 03:00:09 -07:00
提交者 David S. Miller
父节点 bf7e851108
当前提交 da298d3a4f
修改 3 个文件,包含 6 行新增3 行删除

查看文件

@@ -1281,7 +1281,8 @@ int ip6t_register_table(struct xt_table *table,
return ret;
}
if (xt_register_table(table, &bootstrap, newinfo) != 0) {
ret = xt_register_table(table, &bootstrap, newinfo);
if (ret != 0) {
xt_free_table_info(newinfo);
return ret;
}