Bug #622710 - Crash in imapx_idle_supported due to cinfo being NULL
authorMilan Crha <mcrha@redhat.com>
Fri, 25 Jun 2010 12:27:42 +0000 (14:27 +0200)
committerMilan Crha <mcrha@redhat.com>
Fri, 25 Jun 2010 12:27:42 +0000 (14:27 +0200)
camel/providers/imapx/camel-imapx-server.c

index f7c9c91..991e5c0 100644 (file)
@@ -2196,7 +2196,7 @@ imapx_in_idle (CamelIMAPXServer *is)
 static gboolean
 imapx_idle_supported (CamelIMAPXServer *is)
 {
-       return (is->cinfo->capa & IMAPX_CAPABILITY_IDLE && is->use_idle);
+       return (is->cinfo && (is->cinfo->capa & IMAPX_CAPABILITY_IDLE) != 0 && is->use_idle);
 }
 
 // end IDLE