diff options
-rw-r--r-- | awall/policy.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/awall/policy.lua b/awall/policy.lua index f6f427f..35ef24e 100644 --- a/awall/policy.lua +++ b/awall/policy.lua @@ -204,6 +204,10 @@ function PolicySet:load() {'description', 'import', 'after', 'before'}, cls ) then + if type(objs) ~= 'table' then + raise('Invalid top-level attribute: '..cls..' ('..name..')') + end + if not source[cls] then source[cls] = {} end if not input[cls] then |