]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not propagate command name to error output 2000/head
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 10 Jan 2018 19:22:31 +0000 (19:22 +0000)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 24 Jan 2018 12:28:30 +0000 (14:28 +0200)
Issue: #1979

src/libserver/protocol.c

index 6e5a60a72c44ca829561384e38e4d2da29777735..cd06c59af7cdd87f45c22a71effb93b7455506ce 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;
 }