Skip to content

Commit

Permalink
Fix do not return error on empty part returned from server, return ju…
Browse files Browse the repository at this point in the history
…st zero length
  • Loading branch information
Sergei Epatov committed Mar 13, 2017
1 parent e4852f9 commit a8c3190
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/imap/MCIMAPSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2050,8 +2050,9 @@ fetch_imap(mailimap * imap, bool identifier_is_uid, uint32_t identifier,

mailimap_fetch_list_free(fetch_result);

if (text == NULL)
return MAILIMAP_ERROR_FETCH;
if (text == NULL) {
text_length = 0;
}

* result = text;
* result_len = text_length;
Expand Down

0 comments on commit a8c3190

Please sign in to comment.