From 6a4233c79551d9ac2f4f19f53cfacbe4a28093d7 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Tue, 5 Mar 2019 00:12:33 +0100 Subject: [PATCH] Fix possible segmentation fault Signed-off-by: Michael Rasmussen --- src/etpan/imap-thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etpan/imap-thread.c b/src/etpan/imap-thread.c index be5678cb8..b68e303f9 100644 --- a/src/etpan/imap-thread.c +++ b/src/etpan/imap-thread.c @@ -3554,7 +3554,7 @@ void imap_threaded_cancel(Folder * folder) mailimap * imap; imap = get_imap(folder); - if (imap->imap_stream != NULL) + if (imap && imap->imap_stream != NULL) mailstream_cancel(imap->imap_stream); } -- 2.25.1