From c2077ccfbb1a9df66bc433b727a13532ce7031b1 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Thu, 14 Dec 2017 07:47:31 +0000 Subject: [PATCH] Context might be NULL - avoid dereferencing it Issue #999 --- sendlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sendlib.c b/sendlib.c index dcc3081ad..9896901af 100644 --- a/sendlib.c +++ b/sendlib.c @@ -3143,7 +3143,7 @@ int mutt_write_fcc(const char *path, struct Header *hdr, const char *msgid, done: /* We ran a folder hook for the destination mailbox, * now we run it for the user's current mailbox */ - if (Context->path) + if (Context && Context->path) mutt_folder_hook(Context->path); return rc; -- 2.50.1