[evolution-data-server/gnome-3-2] Workaround possible crash in imap_body_decode()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-2] Workaround possible crash in imap_body_decode()
- Date: Mon, 10 Oct 2011 08:58:13 +0000 (UTC)
commit 5ed2409de763f7f4b96941298739aba811cd4ab5
Author: Milan Crha <mcrha redhat com>
Date: Mon Oct 10 10:57:18 2011 +0200
Workaround possible crash in imap_body_decode()
camel/providers/imap/camel-imap-utils.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c
index 5c47f3a..497f9d2 100644
--- a/camel/providers/imap/camel-imap-utils.c
+++ b/camel/providers/imap/camel-imap-utils.c
@@ -977,7 +977,8 @@ imap_body_decode (const gchar **in,
}
camel_strdown (type);
- camel_strdown (subtype);
+ if (subtype)
+ camel_strdown (subtype);
ctype = camel_content_type_new (type, subtype);
g_free (subtype);
g_free (type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]