]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix postfilters squeezing issue
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 23 Mar 2019 09:50:26 +0000 (09:50 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 23 Mar 2019 09:50:26 +0000 (09:50 +0000)
src/lua/lua_config.c

index 9fea7eb5170e9d3d64c06783b988618147112f15..3990e014edbe96b38b8e8a0a9de1de3b0a18fce8 100644 (file)
@@ -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);