From 5ab58aa39c43eca75866fc478445821bb45b4125 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 5 Sep 2010 20:17:23 +0000 Subject: firewall: - fix possible endless loop when the family option is used for forwardings - only generate forwarding rules in SNAT redirect sections if src_dip is specified SVN-Revision: 22938 --- package/firewall/files/lib/fw.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/firewall/files/lib/fw.sh') diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh index 819aa48..aaf3d14 100644 --- a/package/firewall/files/lib/fw.sh +++ b/package/firewall/files/lib/fw.sh @@ -149,7 +149,7 @@ fw__exec() { # { } fi case "$fam" in - G*) shift; while [ "$1" != "{" ]; do shift; done ;; + G*) shift; while [ $# -gt 0 ] && [ "$1" != "{" ]; do shift; done ;; esac if [ $# -gt 0 ]; then -- cgit v1.1