projects
/
project
/
firewall4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25287af
)
fw4.uc: gracefully handle missing defaults section
author
Jo-Philipp Wich
<jo@mein.io>
Wed, 31 Mar 2021 17:45:22 +0000
(19:45 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Wed, 31 Mar 2021 17:45:22 +0000
(19:45 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc
patch
|
blob
|
history
diff --git
a/root/usr/share/ucode/fw4.uc
b/root/usr/share/ucode/fw4.uc
index 25df7a68a3221aad5dcd05a74e58a366dcd550c1..ebab4f7d29f0b9563d7a3ee847b60522f2fb386f 100644
(file)
--- a/
root/usr/share/ucode/fw4.uc
+++ b/
root/usr/share/ucode/fw4.uc
@@
-510,6
+510,9
@@
return {
this.cursor.foreach("firewall", "defaults", d => self.parse_defaults(d));
+ if (!this.state.defaults)
+ this.parse_defaults({});
+
//
// Build list of ipsets