aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel
diff options
context:
space:
mode:
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) {