summaryrefslogtreecommitdiff
path: root/package/firewall/files/lib/fw.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-06-16 22:18:45 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-06-16 22:18:45 +0000
commit9f37422f2f0049a94ea98ea2037aba7250552642 (patch)
tree059de28a63a54876af6842a9674c83e28d30191f /package/firewall/files/lib/fw.sh
parentc014101d733d2e27ee4a03d01e3382da0434106f (diff)
downloadmtk-20170518-9f37422f2f0049a94ea98ea2037aba7250552642.zip
mtk-20170518-9f37422f2f0049a94ea98ea2037aba7250552642.tar.gz
mtk-20170518-9f37422f2f0049a94ea98ea2037aba7250552642.tar.bz2
firewall: ensure that fw_get_subnet4() sets an empty value if no (valid) IPv4 addr was found
SVN-Revision: 27198
Diffstat (limited to 'package/firewall/files/lib/fw.sh')
-rw-r--r--package/firewall/files/lib/fw.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/firewall/files/lib/fw.sh b/package/firewall/files/lib/fw.sh
index 19dddef..8969472 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
}