From: Vsevolod Stakhov Date: Fri, 29 Jul 2016 09:05:46 +0000 (+0100) Subject: [CritFix] Fix crash when the first received is faked X-Git-Tag: 1.3.1~30 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a69d2f2d7245edd5a9d0bd041ac900b43110cc57;p=rspamd.git [CritFix] Fix crash when the first received is faked --- diff --git a/src/libmime/message.c b/src/libmime/message.c index 17680d3cd..87a0123fc 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1522,7 +1522,7 @@ rspamd_message_parse (struct rspamd_task *task) need_recv_correction = TRUE; } else if (!(task->flags & RSPAMD_TASK_FLAG_NO_IP) && task->from_addr) { - if (raddr) { + if (!raddr) { need_recv_correction = TRUE; } else {