summaryrefslogtreecommitdiffstats
path: root/package/firewall/files
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-04-20 11:49:09 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-04-20 11:49:09 +0000
commit8d0ec8922c6a02dc55f993212c74c8ad0823fffb (patch)
tree13a23a08eefdb8e42cbec141fa0094fe364259f1 /package/firewall/files
parent3564c671b16526b562867769a10b03f356e70078 (diff)
[package] firewall: prevent excessive uci state data aggregation (#9152)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26740 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall/files')
-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 ed6a4b150..bc9eb96dd 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"
}