projects
/
openwrt
/
staging
/
rmilecki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c014101
)
firewall: ensure that fw_get_subnet4() sets an empty value if no (valid) IPv4 addr...
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 16 Jun 2011 22:18:45 +0000
(22:18 +0000)
committer
Jo-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
patch
|
blob
|
history
diff --git
a/package/firewall/files/lib/fw.sh
b/package/firewall/files/lib/fw.sh
index 19dddef4433aee9197bd08b1dcaee162b98d8716..896947241a525bdf8d383dd41ce3f34610ef2c6b 100644
(file)
--- 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
}