]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix real IP parsing for some strange Exim received
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 9 Mar 2018 12:27:20 +0000 (12:27 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 9 Mar 2018 12:28:14 +0000 (12:28 +0000)
src/ragel/smtp_received_parser.rl

index 4996658fcdd48ec101c528368c252cbaacd06a3f..c1cd9bc38ecac9c000f01d03935aeb4d0030053c 100644 (file)
   }
 
   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) {