diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-11-17 07:19:55 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-11-17 07:19:55 +0800 |
commit | 48820eabf414852ad255234d955ea011d6f71ae4 (patch) | |
tree | b8d4806087689599e8b0c3488943d6983a535bdb /camel | |
parent | fc71161f50e0d4fe7a4ae6cafdd8f4bbd60ff7ce (diff) | |
download | gsoc2013-evolution-48820eabf414852ad255234d955ea011d6f71ae4.tar.gz gsoc2013-evolution-48820eabf414852ad255234d955ea011d6f71ae4.tar.zst gsoc2013-evolution-48820eabf414852ad255234d955ea011d6f71ae4.zip |
Abort if body == NULL.
2001-11-16 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-utils.c (imap_parse_body): Abort if
body == NULL.
svn path=/trunk/; revision=14738
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 3 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-utils.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 2d0cb690ee..801b87ca30 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,8 @@ 2001-11-16 Jeffrey Stedfast <fejj@ximian.com> + * providers/imap/camel-imap-utils.c (imap_parse_body): Abort if + body == NULL. + * camel-mime-filter-tohtml.c (camel_mime_filter_tohtml_new): New mime filter to convert plain text to html. diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c index f7c63ebcc0..d5466bf9ac 100644 --- a/camel/providers/imap/camel-imap-utils.c +++ b/camel/providers/imap/camel-imap-utils.c @@ -475,7 +475,7 @@ imap_parse_body (char **body_p, CamelFolder *folder, CamelContentType *type; int len; - if (*body++ != '(') { + if (!body || *body++ != '(') { *body_p = NULL; return; } |