From: Jo-Philipp Wich Date: Thu, 16 Jun 2011 22:18:45 +0000 (+0000) Subject: firewall: ensure that fw_get_subnet4() sets an empty value if no (valid) IPv4 addr... X-Git-Tag: reboot~16552 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9f37422f2f0049a94ea98ea2037aba7250552642;p=openwrt%2Fstaging%2Fchunkeey.git firewall: ensure that fw_get_subnet4() sets an empty value if no (valid) IPv4 addr was found SVN-Revision: 27198 --- 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 }