talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 6a4233c79551d9ac2f4f19f53cfacbe4a28093d7
parent 9b0f657019e68cccfb86768f837540881c0e1790
Author: Michael Rasmussen <mir@datanom.net>
Date:   Tue,  5 Mar 2019 00:12:33 +0100

Fix possible segmentation fault

Signed-off-by: Michael Rasmussen <mir@datanom.net>

Diffstat:
Msrc/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 @@ -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); }