N_SE-27320 fixed
authorSang-Hun Chung <sanghun.chung@samsung.com>
Mon, 11 Mar 2013 10:39:15 +0000 (19:39 +0900)
committerSang-Hun Chung <sanghun.chung@samsung.com>
Mon, 11 Mar 2013 10:39:15 +0000 (19:39 +0900)
email-core/email-core-mailbox-sync.c

index c7432da..12f362c 100755 (executable)
@@ -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;
                }