aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-09 12:27:20 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-09 12:28:14 +0000
commit4872d72a2b3d3080d37763ccb9a2142cc82da75e (patch)
treec7d1582e3d759efee28ee8ec109a0ce77a604301 /src/ragel
parentddc8561f295d13f1d5274a4e5ef0c8e95fcc6d1f (diff)
downloadrspamd-4872d72a2b3d3080d37763ccb9a2142cc82da75e.tar.gz
rspamd-4872d72a2b3d3080d37763ccb9a2142cc82da75e.zip
[Fix] Fix real IP parsing for some strange Exim received
Diffstat (limited to 'src/ragel')
-rw-r--r--src/ragel/smtp_received_parser.rl4
1 files changed, 3 insertions, 1 deletions
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) {