(mu_parse822_time): Assume UTC for invalid or unknown timezones.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -1639,8 +1639,8 @@ mu_parse822_time (const char **p, const char *e, | ... | @@ -1639,8 +1639,8 @@ mu_parse822_time (const char **p, const char *e, |
1639 | } | 1639 | } |
1640 | else if (strlen (zone) > 5 || strlen (zone) < 4) | 1640 | else if (strlen (zone) > 5 || strlen (zone) < 4) |
1641 | { | 1641 | { |
1642 | str_free (&zone); | 1642 | if (*tz) |
1643 | return EPARSE; | 1643 | *tz = 0; /* Assume UTC */ |
1644 | } | 1644 | } |
1645 | else | 1645 | else |
1646 | { | 1646 | { | ... | ... |
-
Please register or sign in to post a comment