aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-01 09:34:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-01 09:34:13 +0000
commit8f8b0300361f387189393807cc9e688a414766e8 (patch)
treed5e92e2421bc8ad5c97869200488113aa6b0f6a4 /src/lua
parent20f93d0f627de4539d22dc046b0ab2b88930c2e0 (diff)
downloadrspamd-8f8b0300361f387189393807cc9e688a414766e8.tar.gz
rspamd-8f8b0300361f387189393807cc9e688a414766e8.zip
[Minor] Fix checking of `all` match
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_spf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lua/lua_spf.c b/src/lua/lua_spf.c
index ab53b8912..cf88bc838 100644
--- a/src/lua/lua_spf.c
+++ b/src/lua/lua_spf.c
@@ -340,6 +340,11 @@ spf_check_element (lua_State *L, struct spf_resolved *rec, struct spf_addr *addr
lua_pushinteger (L, RSPAMD_SPF_RESOLVED_TEMP_FAILED);
lua_spf_push_spf_addr (L, addr);
}
+ else {
+ lua_pushboolean (L, true);
+ lua_pushinteger (L, addr->mech);
+ lua_spf_push_spf_addr (L, addr);
+ }
}
else {
lua_pushboolean (L, true);