From: Vsevolod Stakhov Date: Wed, 28 Aug 2019 08:39:08 +0000 (+0100) Subject: [Minor] Rbl: Fix symbols options checks X-Git-Tag: 2.0~322 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=10d6ca42e32ce16d25a5c00f30d46cae85853b9f;p=thirdparty%2Frspamd.git [Minor] Rbl: Fix symbols options checks --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 3b612be402..30945d49fd 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -982,11 +982,13 @@ local function rbl_callback_white(task) local whitelisted_elements = {} for _, w in ipairs(white_symbols) do local ws = task:get_symbol(w) - if ws then - lua_util.debugm(N, task,'found whitelist %s', w) + if ws and ws[1] then + ws = ws[1] if not ws.options then ws.options = {} end for _,opt in ipairs(ws.options) do local elt,what = opt:match('^([^:]+):([^:]+)') + lua_util.debugm(N, task,'found whitelist from %s: %s(%s)', w, + elt, what) if elt and what then whitelisted_elements[elt] = what end