projects
/
platform
/
upstream
/
evolution-data-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cac1ca
)
Bug #674454 - Crash in e_book_backend_ldap_authenticate_user()
author
Milan Crha
<mcrha@redhat.com>
Fri, 16 Nov 2012 08:59:51 +0000
(09:59 +0100)
committer
Milan Crha
<mcrha@redhat.com>
Fri, 16 Nov 2012 08:59:51 +0000
(09:59 +0100)
addressbook/backends/ldap/e-book-backend-ldap.c
patch
|
blob
|
history
diff --git
a/addressbook/backends/ldap/e-book-backend-ldap.c
b/addressbook/backends/ldap/e-book-backend-ldap.c
index
60ae178
..
955f964
100644
(file)
--- 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")) {