[evolution-data-server] Bug #674454 - Crash in e_book_backend_ldap_authenticate_user()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #674454 - Crash in e_book_backend_ldap_authenticate_user()
- Date: Fri, 16 Nov 2012 09:00:25 +0000 (UTC)
commit 41c0d9d4926135a67ff63d56126801de67a51cd6
Author: Milan Crha <mcrha redhat com>
Date: Fri Nov 16 09:59:51 2012 +0100
Bug #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 60ae178..955f964 100644
--- a/addressbook/backends/ldap/e-book-backend-ldap.c
+++ b/addressbook/backends/ldap/e-book-backend-ldap.c
@@ -5518,6 +5518,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]