]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix error callback invocation
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Oct 2018 13:21:27 +0000 (14:21 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Oct 2018 13:21:27 +0000 (14:21 +0100)
src/rspamadm/commands.c

index 81aafcdc911c6b7a49d417eb68c4541c4664dee8..5b0b4bb5a6c610912b379fa7559ecea37b36c894 100644 (file)
@@ -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);
 }