[evolution-data-server] Handle error from camel_imapx_stream_token()



commit 339aef2d3d131cca2833a45e77788c6786beb833
Author: David Woodhouse <David Woodhouse intel com>
Date:   Tue Sep 7 18:46:49 2010 +0100

    Handle error from camel_imapx_stream_token()
    
    This should prevent bug #628940 from actually crashing Evolution, although
    it's still very broken.

 camel/providers/imapx/camel-imapx-utils.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-utils.c b/camel/providers/imapx/camel-imapx-utils.c
index 9b01b64..7455c26 100644
--- a/camel/providers/imapx/camel-imapx-utils.c
+++ b/camel/providers/imapx/camel-imapx-utils.c
@@ -1621,7 +1621,10 @@ imapx_parse_uids (CamelIMAPXStream *is, GError **error)
 	guint len, str_len;
 	gint tok, i;
 
-	tok = camel_imapx_stream_token (is, &token, &len, NULL);
+	tok = camel_imapx_stream_token (is, &token, &len, error);
+	if (tok < 0)
+		return NULL;
+
 	splits = g_strsplit ((gchar *) token, ",", -1);
 	str_len = g_strv_length (splits);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]