commit 83576f1: [Minor] Check return value
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Oct 16 12:07:06 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-10-16 12:44:42 +0100
URL: https://github.com/rspamd/rspamd/commit/83576f16712adb624fdccd370861a9db8e1fa266
[Minor] Check return value
---
src/rspamadm/lua_repl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/rspamadm/lua_repl.c b/src/rspamadm/lua_repl.c
index 70ce06cd2..c1925f0b4 100644
--- a/src/rspamadm/lua_repl.c
+++ b/src/rspamadm/lua_repl.c
@@ -385,7 +385,9 @@ rspamadm_lua_exec_handler (lua_State *L, gint argc, gchar **argv)
return;
}
- lua_repl_thread_call (thread, 0, argv[i], lua_thread_str_error_cb);
+ if (lua_repl_thread_call (thread, 0, argv[i], lua_thread_str_error_cb) != 0) {
+ return;
+ }
}
}
More information about the Commits
mailing list