]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix checking of `all` match
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 1 Dec 2019 09:34:13 +0000 (09:34 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 1 Dec 2019 09:34:13 +0000 (09:34 +0000)
src/lua/lua_spf.c

index ab53b891242ffbaf4d9e73dcf70785e19c0c3a22..cf88bc838abc98d61e0cf9f7ffb7c5c3dc5fe426 100644 (file)
@@ -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);