From 8f1954c0dd4ca231d6904fbbd788dbe40ef284e3 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Wed, 13 Jul 2022 21:01:11 +0000 Subject: [PATCH] upas/Mail: check if plumb attrs are nil --- sys/src/cmd/upas/Mail/mbox.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/src/cmd/upas/Mail/mbox.c b/sys/src/cmd/upas/Mail/mbox.c index 60fdc7dee..b7bdeda83 100644 --- a/sys/src/cmd/upas/Mail/mbox.c +++ b/sys/src/cmd/upas/Mail/mbox.c @@ -802,6 +802,8 @@ changemesg(Plumbmsg *pm) digest = plumblookup(pm->attr, "digest"); action = plumblookup(pm->attr, "mailtype"); + if(digest == nil || action == nil) + return; if(strcmp(action, "new") == 0){ if((m = load(pm->data, digest, 1)) == nil) return;