1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 17:55:55 +02:00

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27198 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-06-16 22:18:45 +00:00
parent f19aa29f12
commit 982ba349b6

View 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
}