summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/re_cache.c1
1 files changed, 1 insertions, 0 deletions
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;
}