From: Vsevolod Stakhov Date: Wed, 1 Apr 2015 14:38:38 +0000 (+0100) Subject: Explicitly set address if cannot parse received header. X-Git-Tag: 0.9.0~361 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=10468da89013bfb18ae95524bfdc9b554d1d0c8b;p=rspamd.git Explicitly set address if cannot parse received header. --- 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) {