]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Do not stop parsing headers on bad IP header
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 25 Feb 2018 16:17:15 +0000 (16:17 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 25 Feb 2018 16:17:15 +0000 (16:17 +0000)
src/libserver/protocol.c

index 791938401ef79072474c8f3eac728fe272bda718..243e8a40ce054ec6e0e9ae2b1d7a8f1d403183f0 100644 (file)
@@ -318,7 +318,6 @@ rspamd_protocol_handle_headers (struct rspamd_task *task,
                                IF_HEADER (IP_ADDR_HEADER) {
                                        if (!rspamd_parse_inet_address (&task->from_addr, hv->str, hv->len)) {
                                                msg_err_task ("bad ip header: '%V'", hv);
-                                               return FALSE;
                                        }
                                        debug_task ("read IP header, value: %V", hv);
                                        has_ip = TRUE;