]> granicus.if.org Git - neomutt/commit
Prevent ctx->fp from being closed twice in the event of an error.
authorKevin McCarthy <kevin@8t8.us>
Wed, 16 Mar 2016 01:04:26 +0000 (18:04 -0700)
committerKevin McCarthy <kevin@8t8.us>
Wed, 16 Mar 2016 01:04:26 +0000 (18:04 -0700)
commit2b5f8e40f201c5e705f53bf456640b5e718fe6c7
tree0f4fb2063254a9159cb1c84cbebfed832691bf1d
parentbbba3d4ed2752f18c4d33d89a8e8cdf7c3df8737
Prevent ctx->fp from being closed twice in the event of an error.

The previous patch from Vincent exposed a crash if ftruncate() fails
in mbox_sync_mailbox().  Change fclose() to safe_fclose(), to avoid it
being called twice.
mbox.c