From a69d2f2d7245edd5a9d0bd041ac900b43110cc57 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 29 Jul 2016 10:05:46 +0100 Subject: [PATCH] [CritFix] Fix crash when the first received is faked --- src/libmime/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5