]> source.dussan.org Git - rspamd.git/commitdiff
Explicitly set address if cannot parse received header.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Apr 2015 14:38:38 +0000 (15:38 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Apr 2015 14:38:38 +0000 (15:38 +0100)
src/libmime/message.c

index 3863f0b21be3de771ee0d0348720ccceb6894cf1..b963ac45515e130c1a5ea0ec7f4696803bd240ca 100644 (file)
@@ -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) {