[evolution-ews] Bug #677398 - Can get stuck in e_book_backend_ews_authenticate_user()



commit c28c9c1fb82ed5c66464bb76716ac0d1d79aaa74
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jun 4 18:24:41 2012 +0200

    Bug #677398 - Can get stuck in e_book_backend_ews_authenticate_user()

 src/server/e-ews-connection.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index d7b01ee..b77bef7 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -1250,6 +1250,11 @@ e_ews_connection_new (const gchar *uri,
 
 	g_static_mutex_lock (&connecting);
 
+	if (!username) {
+		g_static_mutex_unlock (&connecting);
+		return NULL;
+	}
+
 	/* search the connection in our hash table */
 	if (loaded_connections_permissions != NULL) {
 		hash_key = g_strdup_printf ("%s %s",



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