[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 19dddef..8969472 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
 }