diff options
author | denpamusic <denpa@netfleet.space> | 2019-10-23 11:14:37 +0300 |
---|---|---|
committer | denpamusic <denpa@netfleet.space> | 2019-10-23 11:14:37 +0300 |
commit | deacaf7c53106146d08cbd96687e653f868b437b (patch) | |
tree | a45628be0edc5c91d47bd5f3a5e437d4e47d0d01 /lualib/lua_scanners/p0f.lua | |
parent | 0d916d0c7a636fcd72d80f73193d8543a1e6dcd3 (diff) | |
download | rspamd-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.lua | 2 |
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, |