From: Vsevolod Stakhov Date: Sat, 16 Oct 2021 11:44:42 +0000 (+0100) Subject: [Minor] Check return value X-Git-Tag: 3.1~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=83576f16712adb624fdccd370861a9db8e1fa266;p=rspamd.git [Minor] Check return value --- 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; + } } }