diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-06-16 22:18:45 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-06-16 22:18:45 +0000 |
commit | bf8e00c96d504c0b0d25f0a7e4a1a23bad44dff0 (patch) | |
tree | 9b016e2d20a9a7bf5e8d68cadc9454a54018c1ad /package | |
parent | a847a25be9a3143ea1dafb9d9a47501cacd427a8 (diff) | |
download | upstream-bf8e00c96d504c0b0d25f0a7e4a1a23bad44dff0.tar.gz upstream-bf8e00c96d504c0b0d25f0a7e4a1a23bad44dff0.tar.bz2 upstream-bf8e00c96d504c0b0d25f0a7e4a1a23bad44dff0.zip |
[package] firewall: ensure that fw_get_subnet4() sets an empty value if no (valid) IPv4 addr was found
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27198 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/firewall/files/lib/fw.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh index 19dddef443..896947241a 100644 --- a/package/firewall/files/lib/fw.sh +++ b/package/firewall/files/lib/fw.sh @@ -242,5 +242,6 @@ fw_get_subnet4() { export -n -- "$_var=! $_flag $_ipaddr/${_netmask:-255.255.255.255}" || \ export -n -- "$_var=$_flag $_ipaddr/${_netmask:-255.255.255.255}" ;; + *) export -n -- "$_var=" ;; esac } |