From: Jo-Philipp Wich Date: Tue, 20 May 2008 16:31:58 +0000 (+0000) Subject: * ffluci: fix internal property in sys/iptparser.lua X-Git-Tag: 0.8.0~1024 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=9b4386e0f1e91312d90387ce10780f62f7980346 * ffluci: fix internal property in sys/iptparser.lua --- diff --git a/core/src/sys/iptparser.lua b/core/src/sys/iptparser.lua index 4e2c0d680..3e518d41c 100644 --- a/core/src/sys/iptparser.lua +++ b/core/src/sys/iptparser.lua @@ -193,7 +193,7 @@ function IptParser._parse_rules( self ) local rule_details = { } rule_details["table"] = tbl - rule_details["chain"] = _chain + rule_details["chain"] = self._chain rule_details["index"] = tonumber(rule_parts[1]) rule_details["packets"] = tonumber(rule_parts[2]) rule_details["bytes"] = tonumber(rule_parts[3]) @@ -215,6 +215,8 @@ function IptParser._parse_rules( self ) end end end + + self._chain = nil end