From 4872d72a2b3d3080d37763ccb9a2142cc82da75e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 9 Mar 2018 12:27:20 +0000 Subject: [PATCH] [Fix] Fix real IP parsing for some strange Exim received --- src/ragel/smtp_received_parser.rl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.39.5