]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Clear up on lua errors
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 17 Dec 2021 12:04:00 +0000 (12:04 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 17 Dec 2021 12:04:00 +0000 (12:04 +0000)
src/libserver/re_cache.c

index 2c5555154f72704165066c1296d1587302848e01..cde2e88a4b924bf1996f6cecabac26b44567cdeb 100644 (file)
@@ -570,6 +570,7 @@ rspamd_re_cache_check_lua_condition (struct rspamd_task *task,
                msg_warn_task ("cannot call for re_cache_check_lua_condition for re %s: %e",
                                rspamd_regexp_get_pattern (re), err);
                g_error_free (err);
+               lua_settop (L, text_pos - 1);
 
                return TRUE;
        }