commit d8519d5: [Minor] Clear up on lua errors
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Dec 17 12:07:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-12-17 12:04:00 +0000
URL: https://github.com/rspamd/rspamd/commit/d8519d5e744362e7ed950d7095b4269fc230cb1b (HEAD -> master)
[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;
}
More information about the Commits
mailing list