[evolution-data-server/gnome-3-4] Bug #674454 - Crash in e_book_backend_ldap_authenticate_user()



commit 8825c22d1d2657924efdd0f4a1e1db5d169ed81b
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jun 15 16:26:44 2012 +0200

    Bug #674454 - Crash in e_book_backend_ldap_authenticate_user()

 addressbook/backends/ldap/e-book-backend-ldap.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/addressbook/backends/ldap/e-book-backend-ldap.c b/addressbook/backends/ldap/e-book-backend-ldap.c
index 6e07c0a..b8a5eae 100644
--- a/addressbook/backends/ldap/e-book-backend-ldap.c
+++ b/addressbook/backends/ldap/e-book-backend-ldap.c
@@ -5196,11 +5196,10 @@ e_book_backend_ldap_authenticate_user (EBookBackend *backend,
 		if (!bl->priv->connected || !bl->priv->ldap) {
 			GError *error;
 
-			g_static_rec_mutex_unlock (&eds_ldap_handler_lock);
-
 			error = e_book_backend_ldap_connect (bl);
 			if (error) {
 				e_book_backend_notify_opened (backend, error);
+				g_static_rec_mutex_unlock (&eds_ldap_handler_lock);
 				return;
 			}
 		}



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