]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Fix crash when the first received is faked
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 29 Jul 2016 09:05:46 +0000 (10:05 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 29 Jul 2016 09:05:46 +0000 (10:05 +0100)
src/libmime/message.c

index 17680d3cdc4ebcaf12ca270fa7f071688bddc61b..87a0123fcb981d075b3ca1e326a48efabacd49a5 100644 (file)
@@ -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 {