From 339aef2d3d131cca2833a45e77788c6786beb833 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 7 Sep 2010 18:46:49 +0100 Subject: [PATCH] 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 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.7.4