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 | 9f37422f2f0049a94ea98ea2037aba7250552642 (patch) | |
tree | 059de28a63a54876af6842a9674c83e28d30191f /package/firewall | |
parent | c014101d733d2e27ee4a03d01e3382da0434106f (diff) | |
download | upstream-9f37422f2f0049a94ea98ea2037aba7250552642.tar.gz upstream-9f37422f2f0049a94ea98ea2037aba7250552642.tar.bz2 upstream-9f37422f2f0049a94ea98ea2037aba7250552642.zip |
firewall: ensure that fw_get_subnet4() sets an empty value if no (valid) IPv4 addr was found
SVN-Revision: 27198
Diffstat (limited to 'package/firewall')
-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 } |