talons

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

commit 0695cdcb6cd24d13e462f158ac0368197b9c7b0f
parent 59bd8db042b4514e696c3fc39906130563f0691a
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); }