#3918: segfault if /usr/local/bin/mutt_dotlock doesnt exist
---------------------+---------------------
Reporter: Adam2 | Owner: brendan
Type: defect | Status: closed
Priority: major | Milestone:
Component: IMAP | Version:
Resolution: fixed | Keywords:
---------------------+---------------------
Changes (by Kevin McCarthy <kevin@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"e3e47b2f13700c1e45c6460e8fb326f593e68dfa"
6954:e3e47b2f1370]:
{{{
#!CommitTicketReference repository=""
revision="e3e47b2f13700c1e45c6460e8fb326f593e68dfa"
Prevent segv if open-appending to an mbox fails. (closes #3918)
If mbox_open_mailbox_append() fails, ctx->fp will be null. Add a
check in mbox_close_mailbox(), to prevent a segv from passing null to
fileno().
}}}
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3918#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent