Commit 23e41f6c 23e41f6cc9134f5cac18219f79e7ea65248baa95 by Sergey Poznyakoff

(mu_parse822_time): Assume UTC for invalid or unknown timezones.

1 parent 605c3795
...@@ -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 {
......