From: Andrew Lewis Date: Fri, 19 Aug 2016 11:45:53 +0000 (+0200) Subject: [Minor] Deal with non-nil REDIS_NIL in multimap X-Git-Tag: 1.3.4~23^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F862%2Fhead;p=rspamd.git [Minor] Deal with non-nil REDIS_NIL in multimap --- diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index b36fe9f79..99576a511 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -276,7 +276,7 @@ local function multimap_callback(task, rule) end local function redis_map_cb(task, err, data) - if not err and data then + if not err and type(data) ~= 'userdata' then callback(data) end end