diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-11-28 06:47:31 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-11-28 06:47:31 +0000 |
commit | a597ecafa00e4e41c18de39003967556b0eb472d (patch) | |
tree | cdb3a9bdbbf9d2464ae7a85ad2743ee82b50ba3f | |
parent | 5f3e6b4ed3ab6e5e7de2d991e81b42d91a50a83e (diff) |
src/rpop3.c: rpop3_retr_recv(): check error of procheader_parse_file().
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3308 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/rpop3.c | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2013-11-28 + * src/rpop3.c: rpop3_retr_recv(): check error of + procheader_parse_file(). + +2013-11-28 + * libsylph/procmime.c: procmime_scan_multipart_message(): fixed MIME nest level restriction not working. diff --git a/src/rpop3.c b/src/rpop3.c index 9503f35d..1b4d7749 100644 --- a/src/rpop3.c +++ b/src/rpop3.c @@ -795,6 +795,11 @@ static gint rpop3_retr_recv(Pop3Session *session, FILE *fp, guint len) } msginfo = procheader_parse_file(file, flags, FALSE); + if (!msginfo) { + session->error_val = PS_IOERR; + return -1; + } + msginfo->file_path = g_strdup(file); msgview = messageview_create_with_new_window(); |