aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall
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
commit35791d9e95298c6a1e562d8a3ff151b6bd7430c9 (patch)
tree13a23a08eefdb8e42cbec141fa0094fe364259f1 /package/firewall
parentc6dfe2002d27d340bb5da6891bdf37e04c8abeae (diff)
downloadmaster-187ad058-35791d9e95298c6a1e562d8a3ff151b6bd7430c9.tar.gz
master-187ad058-35791d9e95298c6a1e562d8a3ff151b6bd7430c9.tar.bz2
master-187ad058-35791d9e95298c6a1e562d8a3ff151b6bd7430c9.zip
[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')
-rw-r--r--package/firewall/Makefile2
-rw-r--r--package/firewall/files/lib/core_interface.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/package/firewall/Makefile b/package/firewall/Makefile
index ea407f081b..829719c279 100644
--- a/package/firewall/Makefile
+++ b/package/firewall/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=firewall
PKG_VERSION:=2
-PKG_RELEASE:=24
+PKG_RELEASE:=25
include $(INCLUDE_DIR)/package.mk
diff --git a/package/firewall/files/lib/core_interface.sh b/package/firewall/files/lib/core_interface.sh
index ed6a4b150f..bc9eb96dde 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"
}