From d8519d5e744362e7ed950d7095b4269fc230cb1b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 17 Dec 2021 12:04:00 +0000 Subject: [PATCH] [Minor] Clear up on lua errors --- src/libserver/re_cache.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.5