]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix optional arguments
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 22 Sep 2018 10:48:23 +0000 (11:48 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 22 Sep 2018 10:48:23 +0000 (11:48 +0100)
lualib/lua_selectors.lua

index 953532c8d3b4a62c4a20931ddd87e18e055d82bb..065eac89b0d50094492227fe739e582136f841ae 100644 (file)
@@ -705,7 +705,7 @@ exports.parse_selector = function(cfg, str)
         for i,selt in ipairs(schema) do
           local res,err = selt:transform(args[i])
 
-          if not res then
+          if err then
             logger.errx(rspamd_config, 'invalid arguments for %s: %s', name, err)
             return false
           else