[evolution-data-server/gnome-3-6] Bugh #674454 - Crash in e_book_backend_ldap_authenticate_user



commit 420a95c1e163db0bd1a7265b3e776ea688c1cab8
Author: Milan Crha <mcrha redhat com>
Date:   Fri Nov 16 10:00:36 2012 +0100

    Bugh #674454 - Crash in e_book_backend_ldap_authenticate_user

 addressbook/backends/ldap/e-book-backend-ldap.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/backends/ldap/e-book-backend-ldap.c b/addressbook/backends/ldap/e-book-backend-ldap.c
index 6f5f869..0de07f2 100644
--- a/addressbook/backends/ldap/e-book-backend-ldap.c
+++ b/addressbook/backends/ldap/e-book-backend-ldap.c
@@ -5625,6 +5625,9 @@ book_backend_ldap_try_password_sync (ESourceAuthenticator *authenticator,
 	method = e_source_authentication_dup_method (auth_extension);
 	user = e_source_authentication_dup_user (auth_extension);
 
+	if (!method)
+		method = g_strdup ("none");
+
 	if (!g_ascii_strncasecmp (method, LDAP_SIMPLE_PREFIX, strlen (LDAP_SIMPLE_PREFIX))) {
 
 		if (bl->priv->ldap && !strcmp (method, "ldap/simple-email")) {



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