From: Vsevolod Stakhov Date: Fri, 9 Mar 2018 12:27:20 +0000 (+0000) Subject: [Fix] Fix real IP parsing for some strange Exim received X-Git-Tag: 1.7.0~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4872d72a2b3d3080d37763ccb9a2142cc82da75e;p=rspamd.git [Fix] Fix real IP parsing for some strange Exim received --- diff --git a/src/ragel/smtp_received_parser.rl b/src/ragel/smtp_received_parser.rl index 4996658fc..c1cd9bc38 100644 --- a/src/ragel/smtp_received_parser.rl +++ b/src/ragel/smtp_received_parser.rl @@ -100,7 +100,9 @@ } action Real_IP_Start { - real_ip_start = p; + if (real_ip_end == NULL) { + real_ip_start = p; + } } action Real_IP_End { if (ip_start && ip_end && ip_end > ip_start) {