mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 15:45:47 +02:00
[Minor] Skip cache on missing data
This commit is contained in:
parent
0d916d0c7a
commit
deacaf7c53
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user