]> granicus.if.org Git - neomutt/commit
Avoid segfault when an IMAP connection cannot be opened (II)
authorPietro Cerutti <gahr@gahr.ch>
Fri, 16 Nov 2018 15:55:16 +0000 (15:55 +0000)
committerPietro Cerutti <gahr@gahr.ch>
Fri, 16 Nov 2018 15:55:16 +0000 (15:55 +0000)
commit9181e87f8465debbd71df8a2f24d9fd0717610f6
tree1a701b14bc6d3ca4aa4ffce47672c6378149b9e7
parentcbfc1673489cf77eaae81c549a6970de591c3b90
Avoid segfault when an IMAP connection cannot be opened (II)

Part II of 6a2e9f, which broke edit-msg. It turns out that mx_ac_add()
is not required to be successful, e.g., when opening a temporary file.
This means we must be extra cautious and check that m->account->adata is
valid before using it
imap/imap.c
mx.c