[evolution-data-server] Fix SEGV when imapx_parse_list() fails
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Fix SEGV when imapx_parse_list() fails
- Date: Tue, 24 Aug 2010 00:19:36 +0000 (UTC)
commit 2ff4f38585f1f33e8f6b75ef4e02ce8acb124825
Author: David Woodhouse <David Woodhouse intel com>
Date: Tue Aug 24 01:18:32 2010 +0100
Fix SEGV when imapx_parse_list() fails
camel/providers/imapx/camel-imapx-server.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index c236515..55f5cf3 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -1544,7 +1544,12 @@ imapx_untagged(CamelIMAPXServer *imap, GError **error)
lsub = TRUE;
case IMAPX_LIST: {
struct _list_info *linfo = imapx_parse_list(imap->stream, error);
- CamelIMAPXJob *job = imapx_match_active_job(imap, IMAPX_JOB_LIST, linfo->name);
+ CamelIMAPXJob *job;
+
+ if (!linfo)
+ break;
+
+ job = imapx_match_active_job(imap, IMAPX_JOB_LIST, linfo->name);
// TODO: we want to make sure the names match?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]