From 35791d9e95298c6a1e562d8a3ff151b6bd7430c9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 20 Apr 2011 11:49:09 +0000 Subject: [package] firewall: prevent excessive uci state data aggregation (#9152) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26740 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/firewall/files/lib/core_interface.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/firewall/files/lib') 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" } -- cgit v1.2.3