From b91ac118ac9d3845d8ad355c0a1c8b298a1a4380 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 25 Oct 2018 14:21:27 +0100 Subject: [PATCH] [Minor] Fix error callback invocation --- src/rspamadm/commands.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rspamadm/commands.c b/src/rspamadm/commands.c index 81aafcdc91..5b0b4bb5a6 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); } -- 2.47.3