projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db087eb
)
modules/admin-core: prevent crash in network interface overview when netmask option...
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 27 Jan 2009 16:48:46 +0000
(16:48 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 27 Jan 2009 16:48:46 +0000
(16:48 +0000)
modules/admin-core/luasrc/tools/webadmin.lua
patch
|
blob
|
history
diff --git
a/modules/admin-core/luasrc/tools/webadmin.lua
b/modules/admin-core/luasrc/tools/webadmin.lua
index f7eddd80021938f945ef179451e4ee64b3bf5e2f..62168ebb70e0809ca15a0f3c1500217d9e6bb82e 100644
(file)
--- a/
modules/admin-core/luasrc/tools/webadmin.lua
+++ b/
modules/admin-core/luasrc/tools/webadmin.lua
@@
-66,7
+66,7
@@
function network_get_addresses(net)
local mav4 = state:get("network", net, "netmask")
local ipv6 = state:get("network", net, "ip6addr")
- if ipv4 and mav4 then
+ if ipv4 and mav4
and #ipv4 > 0 and #mav4 > 0
then
ipv4 = luci.ip.IPv4(ipv4, mav4)
if ipv4 then
@@
-168,4
+168,4
@@
function iface_get_network(iface)
)
return net
-end
\ No newline at end of file
+end