diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-01-25 11:54:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-01-25 11:54:56 +0000 |
commit | 04f6599ad750e8381626a6e92e05448ceab32732 (patch) | |
tree | 1972ef5573c8fde924799512fa0b82e4345f0298 | |
parent | f8dc0139b49d098b7e615fc1c3ccabcde79c994d (diff) | |
download | rspamd-04f6599ad750e8381626a6e92e05448ceab32732.tar.gz rspamd-04f6599ad750e8381626a6e92e05448ceab32732.zip |
[Minor] Add fail-safety
-rw-r--r-- | lualib/lua_redis.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index edaae9443..818d955e9 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -1290,7 +1290,7 @@ local function add_redis_script(script, redis_params, caller_level, maybe_filena if not caller_level then caller_level = 2 end - local caller = debug.getinfo(caller_level) + local caller = debug.getinfo(caller_level) or debug.getinfo(caller_level - 1) or E local new_script = { caller = caller, |