From: Vsevolod Stakhov Date: Thu, 25 Oct 2018 13:21:27 +0000 (+0100) Subject: [Minor] Fix error callback invocation X-Git-Tag: 1.8.2~139 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b91ac118ac9d3845d8ad355c0a1c8b298a1a4380;p=rspamd.git [Minor] Fix error callback invocation --- diff --git a/src/rspamadm/commands.c b/src/rspamadm/commands.c index 81aafcdc9..5b0b4bb5a 100644 --- a/src/rspamadm/commands.c +++ b/src/rspamadm/commands.c @@ -91,9 +91,7 @@ rspamadm_fill_internal_commands (GPtrArray *dest) static void lua_thread_str_error_cb (struct thread_entry *thread, int ret, const char *msg) { - const struct rspamadm_command *cmd = thread->cd; - - msg_err ("call to rspamadm lua script %s failed (%d): %s", cmd->name, + msg_err ("call to rspamadm lua script failed (%d): %s", ret, msg); }