aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-10 16:09:36 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-10 16:09:55 +0000
commit1f94c631a6f3717b7f175fa95a325502b81e0edc (patch)
tree1f724f08fe26d2e4ff40188c7c218b8c76e89e12
parent61e409a445eb1f6b5e3eaf656c1ecad5f08c0af2 (diff)
downloadrspamd-1f94c631a6f3717b7f175fa95a325502b81e0edc.tar.gz
rspamd-1f94c631a6f3717b7f175fa95a325502b81e0edc.zip
[Fix] Fix timezones parsing
-rw-r--r--src/ragel/smtp_date.rl4
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);