From 2a386cee9926f7350c74c6d68e798b7ff21721a9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 20 Apr 2011 11:49:09 +0000 Subject: firewall: prevent excessive uci state data aggregation (#9152) SVN-Revision: 26740 --- package/firewall/Makefile | 2 +- package/firewall/files/lib/core_interface.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package/firewall/Makefile b/package/firewall/Makefile index ea407f0..829719c 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 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" } -- cgit v1.1