aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-05 13:00:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-05 13:05:45 +0100
commitb91c14da667827c505ab74b9026a337e1f0ed0af (patch)
tree252abf66e51de06202040b5267092fcc0340e3f2 /src/libserver
parent7c742b4c0f833d70cd5ee68068ac50e39ada3eb6 (diff)
downloadrspamd-b91c14da667827c505ab74b9026a337e1f0ed0af.tar.gz
rspamd-b91c14da667827c505ab74b9026a337e1f0ed0af.zip
[Fix] Do not set absent hostname to "unknown"
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/protocol.c5
1 files changed, 0 insertions, 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;
}