Changeset

2521:66b81e144ded

mod_firewall: Fix CHECK LIST syntax check
author Matthew Wild <mwild1@gmail.com>
date Sun, 19 Feb 2017 22:24:21 +0000
parents 2520:c6fd8975704b
children 2522:72cbec103709
files mod_firewall/conditions.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/conditions.lib.lua	Sun Feb 19 21:10:26 2017 +0000
+++ b/mod_firewall/conditions.lib.lua	Sun Feb 19 22:24:21 2017 +0000
@@ -255,7 +255,7 @@
 -- CHECK LIST: spammers contains $<@from>
 function condition_handlers.CHECK_LIST(list_condition)
 	local list_name, expr = list_condition:match("(%S+) contains (.+)$");
-	if not list_name and expr then
+	if not (list_name and expr) then
 		error("Error parsing list check, syntax: LISTNAME contains EXPRESSION");
 	end
 	local meta_deps = {};