#3817: [PATCH] Fedora: Fix crash in IMAP
----------------------+---------------------
  Reporter:  flatcap  |      Owner:  brendan
      Type:  defect   |     Status:  new
  Priority:  major    |  Milestone:
 Component:  IMAP     |    Version:  1.5.24
Resolution:           |   Keywords:  patch
----------------------+---------------------

Comment (by kevin8t8):

 Here's an alternative patch.  It returns -1 from sync_helper() if the ctx
 is NULL (mailbox closed somehow).  It adds missing checks for the
 sync_helper() return value.  We don't really need the sum, so it changes
 it to use bitwise-OR instead.  Lastly, if the imap_exec below fails, I
 noticed it wasn't setting rc=-1, so I added that.

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3817#comment:3>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to