diff options
author | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2019-10-02 16:47:41 +0200 |
---|---|---|
committer | Carsten Rosenberg <c.rosenberg@heinlein-support.de> | 2019-10-02 16:47:41 +0200 |
commit | adc10228b43a7b1a8d6203579611d9cca04545ea (patch) | |
tree | cac934740fc56a46a2d1e58e17f516f9ab76dc73 /lualib/lua_scanners/oletools.lua | |
parent | e273a7d2cb8a94949e5aaf6b8efd9b78b7c6a17e (diff) | |
download | rspamd-adc10228b43a7b1a8d6203579611d9cca04545ea.tar.gz rspamd-adc10228b43a7b1a8d6203579611d9cca04545ea.zip |
[Minor] lua_scanners - fix need_check, lua warnings #2, use lua_util
Diffstat (limited to 'lualib/lua_scanners/oletools.lua')
-rw-r--r-- | lualib/lua_scanners/oletools.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lualib/lua_scanners/oletools.lua b/lualib/lua_scanners/oletools.lua index 1f861f6a7..cc973d4d5 100644 --- a/lualib/lua_scanners/oletools.lua +++ b/lualib/lua_scanners/oletools.lua @@ -304,7 +304,9 @@ local function oletools_check(task, content, digest, rule) end - if common.need_check(task, content, rule, digest) then + if common.need_check(task, content, rule, digest, oletools_check_uncached) then + return + else oletools_check_uncached() end |