Browse Source

firewall: ensure that fw_get_subnet4() sets an empty value if no (valid) IPv4 addr was found

SVN-Revision: 27198
Jo-Philipp Wich 14 years ago
parent
commit
9f37422f2f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/firewall/files/lib/fw.sh

+ 1 - 0
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
 }