[evolution-data-server] Crash in imapx_command_start at camel-imapx-server.c:780



commit b9397aba9c6d7dddd1d3c214ecbb3031dd166513
Author: Fridrich Strba <fridrich strba bluewin ch>
Date:   Fri Mar 12 17:49:14 2010 +0100

    Crash in imapx_command_start at camel-imapx-server.c:780

 camel/providers/imapx/camel-imapx-server.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 2024116..f708a77 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -777,7 +777,8 @@ imapx_command_start (CamelIMAPXServer *imap, CamelIMAPXCommand *ic)
 
 		camel_exception_set (ic->ex, 1, "Failed to issue the command");
 		camel_dlist_remove ((CamelDListNode *)ic);
-		ic->complete (imap, ic);
+		if (ic && ic->complete)
+			ic->complete (imap, ic);
 		return FALSE;
 	}
 



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