aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-07-12 02:24:32 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-07-12 02:24:32 +0800
commit96d94fc6708215dc1a7d3fa3d1c8324446e0d95c (patch)
tree8ea7f530b86450de6748b2c6b9627cace643875f
parent8f2a589a6321d1c53d461bdd6776a19b03127ea7 (diff)
downloadgsoc2013-evolution-96d94fc6708215dc1a7d3fa3d1c8324446e0d95c.tar
gsoc2013-evolution-96d94fc6708215dc1a7d3fa3d1c8324446e0d95c.tar.gz
gsoc2013-evolution-96d94fc6708215dc1a7d3fa3d1c8324446e0d95c.tar.bz2
gsoc2013-evolution-96d94fc6708215dc1a7d3fa3d1c8324446e0d95c.tar.lz
gsoc2013-evolution-96d94fc6708215dc1a7d3fa3d1c8324446e0d95c.tar.xz
gsoc2013-evolution-96d94fc6708215dc1a7d3fa3d1c8324446e0d95c.tar.zst
gsoc2013-evolution-96d94fc6708215dc1a7d3fa3d1c8324446e0d95c.zip
Don't forget to set an appropriate exception before returning NULL.
2002-07-11 Jeffrey Stedfast <fejj@ximian.com> * camel-multipart-encrypted.c (camel_multipart_encrypted_decrypt): Don't forget to set an appropriate exception before returning NULL. svn path=/trunk/; revision=17418
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-multipart-encrypted.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 8c8a069355..787e30a12e 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2002-07-11 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-multipart-encrypted.c (camel_multipart_encrypted_decrypt):
+ Don't forget to set an appropriate exception before returning
+ NULL.
+
2002-07-10 Jeffrey Stedfast <fejj@ximian.com>
* camel-filter-driver.c (get_message_cb): Make sure message is
diff --git a/camel/camel-multipart-encrypted.c b/camel/camel-multipart-encrypted.c
index 014f02726b..b8856ad799 100644
--- a/camel/camel-multipart-encrypted.c
+++ b/camel/camel-multipart-encrypted.c
@@ -282,6 +282,8 @@ camel_multipart_encrypted_decrypt (CamelMultipartEncrypted *mpe,
encrypted_part = camel_multipart_get_part (CAMEL_MULTIPART (mpe), CAMEL_MULTIPART_ENCRYPTED_CONTENT);
mime_type = camel_mime_part_get_content_type (encrypted_part);
if (!header_content_type_is (mime_type, "application", "octet-stream")) {
+ camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM,
+ _("Failed to decrypt MIME part: invalid structure"));
camel_object_unref (encrypted_part);
camel_object_unref (version_part);
return NULL;