From b91c14da667827c505ab74b9026a337e1f0ed0af Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 5 Aug 2016 13:00:31 +0100 Subject: [PATCH] [Fix] Do not set absent hostname to "unknown" --- src/libserver/protocol.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index e10231b79..371a5de29 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; } -- 2.39.5