projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-base: gracefully handle broken firewall forwarding sections
[project/luci.git]
/
modules
/
luci-base
/
luasrc
/
model
/
firewall.lua
diff --git
a/modules/luci-base/luasrc/model/firewall.lua
b/modules/luci-base/luasrc/model/firewall.lua
index
5573a9b
..
feff085
100644
(file)
--- a/
modules/luci-base/luasrc/model/firewall.lua
+++ b/
modules/luci-base/luasrc/model/firewall.lua
@@
-498,11
+498,13
@@
function forwarding.dest(self)
end
function forwarding.src_zone(self)
- return zone(self:src())
+ local z = zone(self:src())
+ return z.sid and z
end
function forwarding.dest_zone(self)
- return zone(self:dest())
+ local z = zone(self:dest())
+ return z.sid and z
end