]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Unbreak logic whith broken IP header
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 25 Feb 2018 16:18:47 +0000 (16:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 25 Feb 2018 16:18:47 +0000 (16:18 +0000)
src/libserver/protocol.c

index 243e8a40ce054ec6e0e9ae2b1d7a8f1d403183f0..ef14e45ff6fc2404ec6e5d90c4c6d72ffd9eb749 100644 (file)
@@ -319,8 +319,10 @@ rspamd_protocol_handle_headers (struct rspamd_task *task,
                                        if (!rspamd_parse_inet_address (&task->from_addr, hv->str, hv->len)) {
                                                msg_err_task ("bad ip header: '%V'", hv);
                                        }
-                                       debug_task ("read IP header, value: %V", hv);
-                                       has_ip = TRUE;
+                                       else {
+                                               debug_task ("read IP header, value: %V", hv);
+                                               has_ip = TRUE;
+                                       }
                                }
                                else {
                                        debug_task ("wrong header: %V", hn);