From: Vsevolod Stakhov Date: Tue, 10 Jan 2017 16:09:36 +0000 (+0000) Subject: [Fix] Fix timezones parsing X-Git-Tag: 1.5.0~381 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f94c631a6f3717b7f175fa95a325502b81e0edc;p=thirdparty%2Frspamd.git [Fix] Fix timezones parsing --- diff --git a/src/ragel/smtp_date.rl b/src/ragel/smtp_date.rl index 6830506cdd..69227ef1ee 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);