From: Vsevolod Stakhov Date: Fri, 5 Aug 2016 12:00:31 +0000 (+0100) Subject: [Fix] Do not set absent hostname to "unknown" X-Git-Tag: 1.3.2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b91c14da667827c505ab74b9026a337e1f0ed0af;p=thirdparty%2Frspamd.git [Fix] Do not set absent hostname to "unknown" --- diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index e10231b792..371a5de29b 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -472,11 +472,6 @@ rspamd_protocol_handle_headers (struct rspamd_task *task, } } - if (task->hostname == NULL || task->hostname[0] == '\0') { - /* We assume that hostname is either "unknown" or existing */ - task->hostname = rspamd_mempool_strdup (task->task_pool, "unknown"); - } - if (!has_ip) { task->flags |= RSPAMD_TASK_FLAG_NO_IP; }