From 1b9dd8ff3e8943c341de867fadb7b888531e1bbb Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 23 Mar 2019 09:50:26 +0000 Subject: [PATCH] [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); -- 2.39.5