diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-17 12:04:00 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-17 12:04:00 +0000 |
commit | d8519d5e744362e7ed950d7095b4269fc230cb1b (patch) | |
tree | 60df818fb6a7745017d7f797331a02aedac73589 /src/libserver/re_cache.c | |
parent | 84aef0280c7ea8a18737d4ee5232f4a9bd004d30 (diff) | |
download | rspamd-d8519d5e744362e7ed950d7095b4269fc230cb1b.tar.gz rspamd-d8519d5e744362e7ed950d7095b4269fc230cb1b.zip |
[Minor] Clear up on lua errors
Diffstat (limited to 'src/libserver/re_cache.c')
-rw-r--r-- | src/libserver/re_cache.c | 1 |
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; } |