diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-11-17 09:10:15 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-11-17 09:11:51 +0200 |
commit | c1b1da9202a5903007496461e5fe69004fbde7ff (patch) | |
tree | 126ff80171bc871887561bad00642882c0baeac8 | |
parent | 5c6cb548eae63e4971270d391c29af81d9ec504b (diff) | |
download | mailutils-c1b1da9202a5903007496461e5fe69004fbde7ff.tar.gz mailutils-c1b1da9202a5903007496461e5fe69004fbde7ff.tar.bz2 |
Bugfix
* libmailutils/mailbox/msgenv.c (get_received_date): Fix possible
NULL dereference.
-rw-r--r-- | libmailutils/mailbox/msgenv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmailutils/mailbox/msgenv.c b/libmailutils/mailbox/msgenv.c index a9b2cb30e..c797eb1e0 100644 --- a/libmailutils/mailbox/msgenv.c +++ b/libmailutils/mailbox/msgenv.c | |||
@@ -64,7 +64,7 @@ get_received_date (mu_message_t msg, struct tm *tm, struct mu_timezone *tz) | |||
64 | ; years, are prohibited in SMTP and MUST NOT be used. | 64 | ; years, are prohibited in SMTP and MUST NOT be used. |
65 | */ | 65 | */ |
66 | p = strchr (val, ';'); | 66 | p = strchr (val, ';'); |
67 | if (*p) | 67 | if (p) |
68 | { | 68 | { |
69 | p = mu_str_skip_class (p + 1, MU_CTYPE_SPACE); | 69 | p = mu_str_skip_class (p + 1, MU_CTYPE_SPACE); |
70 | if (*p && mu_scan_datetime (p, MU_DATETIME_SCAN_RFC822, tm, tz, NULL) == 0) | 70 | if (*p && mu_scan_datetime (p, MU_DATETIME_SCAN_RFC822, tm, tz, NULL) == 0) |