]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix timezones parsing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 10 Jan 2017 16:09:36 +0000 (16:09 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 10 Jan 2017 16:09:55 +0000 (16:09 +0000)
src/ragel/smtp_date.rl

index 6830506cdd712de5f4825a273f3144a81c7470e4..69227ef1ee79de4dda1057681b4d079ce680506f 100644 (file)
@@ -85,8 +85,8 @@
 
   }
   action TZ_Offset_End {
-    if (p > tmp + 1) {
-      rspamd_strtoul (tmp + 1, p - tmp, (gulong *)&tz);
+    if (p > tmp) {
+      rspamd_strtoul (tmp, p - tmp, (gulong *)&tz);
 
       if (*(tmp - 1) == '-') {
         tz = -(tz);