From 10468da89013bfb18ae95524bfdc9b554d1d0c8b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 1 Apr 2015 15:38:38 +0100 Subject: [PATCH] Explicitly set address if cannot parse received header. --- src/libmime/message.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libmime/message.c b/src/libmime/message.c index 3863f0b21..b963ac455 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1610,6 +1610,7 @@ process_message (struct rspamd_task *task) if (!rspamd_parse_inet_address (&task->from_addr, recv->real_ip)) { msg_warn ("cannot get IP from received header: '%s'", recv->real_ip); + task->from_addr = NULL; } } if (recv->real_hostname) { -- 2.39.5