summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSang-Hun Chung <sanghun.chung@samsung.com>2013-03-11 19:39:15 +0900
committerSang-Hun Chung <sanghun.chung@samsung.com>2013-03-11 19:39:15 +0900
commit640d20e32acb04d8a4ee5326188861f0db0ed2a9 (patch)
treedbbd676147066b77bfe5c857f56124ee0df4e9d9
parent2533a452c052fdc0e43e9c9aa2c226f8d93f306c (diff)
downloademail-service-640d20e32acb04d8a4ee5326188861f0db0ed2a9.tar.gz
email-service-640d20e32acb04d8a4ee5326188861f0db0ed2a9.tar.bz2
email-service-640d20e32acb04d8a4ee5326188861f0db0ed2a9.zip
N_SE-27320 fixed
-rwxr-xr-xemail-core/email-core-mailbox-sync.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/email-core/email-core-mailbox-sync.c b/email-core/email-core-mailbox-sync.c
index c7432da..12f362c 100755
--- a/email-core/email-core-mailbox-sync.c
+++ b/email-core/email-core-mailbox-sync.c
@@ -3699,8 +3699,10 @@ static int emcore_download_bulk_partial_mail_body_for_imap(MAILSTREAM *stream, i
attachment_num = 0;
uidno = 0;
- if ((err = emcore_parse_bodystructure(stream, reply_from_server, imap_response[i].header, &body, &cnt_info, &total_mail_size, &uidno)) != EMAIL_ERROR_NONE) {
+ err = emcore_parse_bodystructure(stream, reply_from_server, imap_response[i].header, &body, &cnt_info, &total_mail_size, &uidno);
+ if (err != EMAIL_ERROR_NONE || !body) {
EM_DEBUG_EXCEPTION("emcore_parse_bodystructure failed : [%d]", err);
+ err = EMAIL_ERROR_ON_PARSING;
goto FINISH_OFF;
}