commit deacaf7: [Minor] Skip cache on missing data
denpamusic
denpa at netfleet.space
Wed Oct 23 11:42:07 UTC 2019
Author: denpamusic
Date: 2019-10-23 11:14:37 +0300
URL: https://github.com/rspamd/rspamd/commit/deacaf7c53106146d08cbd96687e653f868b437b
[Minor] Skip cache on missing data
---
lualib/lua_scanners/p0f.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
More information about the Commits
mailing list