]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Do not set absent hostname to "unknown"
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 5 Aug 2016 12:00:31 +0000 (13:00 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 5 Aug 2016 12:05:45 +0000 (13:05 +0100)
src/libserver/protocol.c

index e10231b792d45a8f63950d99993e795372e1034f..371a5de29b81353bfb97acc230f74df81d489d79 100644 (file)
@@ -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;
        }