commit 8f8b030: [Minor] Fix checking of `all` match
Vsevolod Stakhov
vsevolod at highsecure.ru
Sun Dec 1 09:35:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-12-01 09:34:13 +0000
URL: https://github.com/rspamd/rspamd/commit/8f8b0300361f387189393807cc9e688a414766e8
[Minor] Fix checking of `all` match
---
src/lua/lua_spf.c | 5 +++++
1 file changed, 5 insertions(+)
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);
More information about the Commits
mailing list