[evolution-data-server] Fixes a crash when select mailbox fails



commit 9616da5669ad6211687c6a71bc41eb154e415e96
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Fri Jan 29 23:54:57 2010 +0530

    Fixes a crash when select mailbox fails

 camel/providers/imapx/camel-imapx-server.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 8cf6303..62b22b8 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -1817,9 +1817,7 @@ imapx_command_select_done (CamelIMAPXServer *is, CamelIMAPXCommand *ic)
 		CamelIMAPXCommand *cw, *cn;
 
 		printf("Select failed\n");
-		failed.head = NULL;
-		failed.tail = NULL;
-		failed.tailpred = NULL;
+		camel_dlist_init (&failed);
 
 		QUEUE_LOCK(is);
 		cw = (CamelIMAPXCommand *)is->queue.head;
@@ -1839,6 +1837,7 @@ imapx_command_select_done (CamelIMAPXServer *is, CamelIMAPXCommand *ic)
 			cn = cw->next;
 			while (cn) {
 				cw->status = imap_copy_status(ic->status);
+				camel_exception_setv (cw->ex, 1, "select %s failed", cw->select);
 				cw->complete(is, cw);
 				cw = cn;
 				cn = cn->next;



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