summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2019-11-17 07:10:15 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2019-11-17 07:11:51 (GMT)
commitc1b1da9202a5903007496461e5fe69004fbde7ff (patch) (side-by-side diff)
tree126ff80171bc871887561bad00642882c0baeac8
parent5c6cb548eae63e4971270d391c29af81d9ec504b (diff)
downloadmailutils-c1b1da9202a5903007496461e5fe69004fbde7ff.tar.gz
mailutils-c1b1da9202a5903007496461e5fe69004fbde7ff.tar.bz2
Bugfix
* libmailutils/mailbox/msgenv.c (get_received_date): Fix possible NULL dereference.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libmailutils/mailbox/msgenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmailutils/mailbox/msgenv.c b/libmailutils/mailbox/msgenv.c
index a9b2cb3..c797eb1 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)

Return to:

Send suggestions and report system problems to the System administrator.