summaryrefslogtreecommitdiff
path: root/package/firewall/files/lib
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-04-20 11:49:09 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-04-20 11:49:09 +0000
commit2a386cee9926f7350c74c6d68e798b7ff21721a9 (patch)
treedb5d99d6474a2d580cc69ef161eabc7ce9406f79 /package/firewall/files/lib
parent04d064a59055ede01f24312e2c384c501fc08cca (diff)
downloadmtk-20170518-2a386cee9926f7350c74c6d68e798b7ff21721a9.zip
mtk-20170518-2a386cee9926f7350c74c6d68e798b7ff21721a9.tar.gz
mtk-20170518-2a386cee9926f7350c74c6d68e798b7ff21721a9.tar.bz2
firewall: prevent excessive uci state data aggregation (#9152)
SVN-Revision: 26740
Diffstat (limited to 'package/firewall/files/lib')
-rw-r--r--package/firewall/files/lib/core_interface.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/firewall/files/lib/core_interface.sh b/package/firewall/files/lib/core_interface.sh
index ed6a4b1..bc9eb96 100644
--- a/package/firewall/files/lib/core_interface.sh
+++ b/package/firewall/files/lib/core_interface.sh
@@ -8,6 +8,7 @@ fw__uci_state_add() {
val="${val// $item / }"
val="${val# }"
val="${val% }"
+ uci_revert_state firewall core $var
uci_set_state firewall core $var "${val:+$val }$item"
}
@@ -19,6 +20,7 @@ fw__uci_state_del() {
val="${val// $item / }"
val="${val# }"
val="${val% }"
+ uci_revert_state firewall core $var
uci_set_state firewall core $var "$val"
}