aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-16 12:44:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-16 12:44:42 +0100
commit83576f16712adb624fdccd370861a9db8e1fa266 (patch)
tree047ba28500f73b3095432e49222d2771e317c145 /src/rspamadm
parent90d148b039be2d89a55dd3f3646dc6deb8f87208 (diff)
downloadrspamd-83576f16712adb624fdccd370861a9db8e1fa266.tar.gz
rspamd-83576f16712adb624fdccd370861a9db8e1fa266.zip
[Minor] Check return value
Diffstat (limited to 'src/rspamadm')
-rw-r--r--src/rspamadm/lua_repl.c4
1 files changed, 3 insertions, 1 deletions
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;
+ }
}
}