aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_scanners/p0f.lua
diff options
context:
space:
mode:
authordenpamusic <denpa@netfleet.space>2019-10-23 11:14:37 +0300
committerdenpamusic <denpa@netfleet.space>2019-10-23 11:14:37 +0300
commitdeacaf7c53106146d08cbd96687e653f868b437b (patch)
treea45628be0edc5c91d47bd5f3a5e437d4e47d0d01 /lualib/lua_scanners/p0f.lua
parent0d916d0c7a636fcd72d80f73193d8543a1e6dcd3 (diff)
downloadrspamd-deacaf7c53106146d08cbd96687e653f868b437b.tar.gz
rspamd-deacaf7c53106146d08cbd96687e653f868b437b.zip
[Minor] Skip cache on missing data
Diffstat (limited to 'lualib/lua_scanners/p0f.lua')
-rw-r--r--lualib/lua_scanners/p0f.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_scanners/p0f.lua b/lualib/lua_scanners/p0f.lua
index b27a42ef6..056c0ad8b 100644
--- a/lualib/lua_scanners/p0f.lua
+++ b/lualib/lua_scanners/p0f.lua
@@ -117,7 +117,7 @@ local function p0f_check(task, ip, rule)
data = parse_p0f_response(data)
- if rule.redis_params then
+ if rule.redis_params and data then
local key = rule.prefix .. ip:to_string()
local ret = lua_redis.redis_make_request(task,
rule.redis_params,