[package] firewall: ensure that fw_get_subnet4() sets an empty value if no (valid...
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 16 Jun 2011 22:18:45 +0000 (22:18 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 16 Jun 2011 22:18:45 +0000 (22:18 +0000)
SVN-Revision: 27198

package/firewall/files/lib/fw.sh

index 19dddef4433aee9197bd08b1dcaee162b98d8716..896947241a525bdf8d383dd41ce3f34610ef2c6b 100644 (file)
@@ -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
 }