From: Vsevolod Stakhov Date: Thu, 15 Aug 2024 14:08:47 +0000 (+0100) Subject: [Minor] Fix check X-Git-Tag: 3.10.0~37^2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ca923b9ede9098e7538cbd60d68ea7bcb48408d2;p=rspamd.git [Minor] Fix check --- diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua index 03c858b8a..5b1ab2e1c 100644 --- a/lualib/lua_cfg_transform.lua +++ b/lualib/lua_cfg_transform.lua @@ -241,8 +241,8 @@ return function(cfg) -- DKIM signing/ARC legacy for _, mod in ipairs({ 'dkim_signing', 'arc' }) do if cfg:at(mod) then - if cfg:at(mod):at('auth_only'):unwrap() ~= nil then - if cfg:at(mod):at('sign_authenticated'):unwrap() ~= nil then + if cfg:at(mod):at('auth_only') then + if cfg:at(mod):at('sign_authenticated') then logger.warnx(rspamd_config, 'both auth_only (%s) and sign_authenticated (%s) for %s are specified, prefer auth_only', cfg:at(mod):at('auth_only'):unwrap(), cfg:at(mod):at('sign_authenticated'):unwrap(), mod)