commit 1b9dd8f: [Minor] Fix postfilters squeezing issue
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Mar 23 09:56:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-03-23 09:50:26 +0000
URL: https://github.com/rspamd/rspamd/commit/1b9dd8ff3e8943c341de867fadb7b888531e1bbb (HEAD -> master)
[Minor] Fix postfilters squeezing issue
---
src/lua/lua_config.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index 9fea7eb51..3990e014e 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -1411,7 +1411,7 @@ rspamd_lua_squeeze_rule (lua_State *L,
" is likely corrupted!");
}
}
- else {
+ else if (type & (SYMBOL_TYPE_CALLBACK|SYMBOL_TYPE_NORMAL)) {
if (rspamd_lua_require_function (L, "lua_squeeze_rules", "squeeze_rule")) {
if (name) {
lua_pushstring (L, name);
@@ -1465,6 +1465,7 @@ rspamd_lua_squeeze_rule (lua_State *L,
" is likely corrupted!");
}
}
+ /* No squeeze for everything else */
/* Cleanup lua stack */
lua_settop (L, err_idx - 1);
More information about the Commits
mailing list