From: DINH V. H. <ho...@us...> - 2006-07-14 11:16:09
|
Update of /cvsroot/libetpan/libetpan/src/low-level/imf In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv4115/src/low-level/imf Modified Files: mailimf.c Log Message: fixed a crash in case of parse error on Bcc field. Index: mailimf.c =================================================================== RCS file: /cvsroot/libetpan/libetpan/src/low-level/imf/mailimf.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- mailimf.c 22 May 2006 13:39:42 -0000 1.42 +++ mailimf.c 14 Jul 2006 11:16:04 -0000 1.43 @@ -5079,13 +5079,13 @@ r = mailimf_unstrict_crlf_parse(message, length, &cur_token); if (r != MAILIMF_NO_ERROR) { res = r; - goto free_addr_list; + goto err; } bcc = mailimf_bcc_new(addr_list); if (bcc == NULL) { res = MAILIMF_ERROR_MEMORY; - goto free_addr_list; + goto err; } * result = bcc; @@ -5093,9 +5093,9 @@ return MAILIMF_NO_ERROR; - free_addr_list: - mailimf_address_list_free(addr_list); err: + if (addr_list != NULL) + mailimf_address_list_free(addr_list); return res; } |