]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Check return value
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 16 Oct 2021 11:44:42 +0000 (12:44 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 16 Oct 2021 11:44:42 +0000 (12:44 +0100)
src/rspamadm/lua_repl.c

index 70ce06cd2218b1714e3506a3cfaabfeffcac1ee7..c1925f0b4e2a1a7d77ea04061c82ec902d2ce190 100644 (file)
@@ -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;
+               }
        }
 }