]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not propagate command name to error output
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Jan 2018 19:22:31 +0000 (19:22 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Jan 2018 19:22:31 +0000 (19:22 +0000)
Issue: #1979

src/libserver/protocol.c

index 707ec7806d47308987c755dae0e06b5085c0028f..41d4111df03604651d700b27549c2c8f5823b4f8 100644 (file)
@@ -197,8 +197,7 @@ rspamd_protocol_handle_url (struct rspamd_task *task,
        return TRUE;
 
 err:
-       g_set_error (&task->err, rspamd_protocol_quark(), 400, "invalid command: %.*s",
-                       (gint)pathlen, p);
+       g_set_error (&task->err, rspamd_protocol_quark(), 400, "invalid command");
 
        return FALSE;
 }