From: Vsevolod Stakhov Date: Fri, 17 Dec 2021 12:04:00 +0000 (+0000) Subject: [Minor] Clear up on lua errors X-Git-Tag: 3.2~154 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d8519d5e744362e7ed950d7095b4269fc230cb1b;p=rspamd.git [Minor] Clear up on lua errors --- diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c index 2c5555154..cde2e88a4 100644 --- a/src/libserver/re_cache.c +++ b/src/libserver/re_cache.c @@ -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; }