diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-10 16:09:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-10 16:09:55 +0000 |
commit | 1f94c631a6f3717b7f175fa95a325502b81e0edc (patch) | |
tree | 1f724f08fe26d2e4ff40188c7c218b8c76e89e12 | |
parent | 61e409a445eb1f6b5e3eaf656c1ecad5f08c0af2 (diff) | |
download | rspamd-1f94c631a6f3717b7f175fa95a325502b81e0edc.tar.gz rspamd-1f94c631a6f3717b7f175fa95a325502b81e0edc.zip |
[Fix] Fix timezones parsing
-rw-r--r-- | src/ragel/smtp_date.rl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ragel/smtp_date.rl b/src/ragel/smtp_date.rl index 6830506cd..69227ef1e 100644 --- a/src/ragel/smtp_date.rl +++ b/src/ragel/smtp_date.rl @@ -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); |