From c1b1da9202a5903007496461e5fe69004fbde7ff Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 17 Nov 2019 09:10:15 +0200 Subject: Bugfix * libmailutils/mailbox/msgenv.c (get_received_date): Fix possible NULL dereference. --- libmailutils/mailbox/msgenv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ; years, are prohibited in SMTP and MUST NOT be used. */ p = strchr (val, ';'); - if (*p) + if (p) { p = mu_str_skip_class (p + 1, MU_CTYPE_SPACE); if (*p && mu_scan_datetime (p, MU_DATETIME_SCAN_RFC822, tm, tz, NULL) == 0) -- cgit v1.2.1