Bug #674454 - Crash in e_book_backend_ldap_authenticate_user()
authorMilan Crha <mcrha@redhat.com>
Fri, 16 Nov 2012 08:59:51 +0000 (09:59 +0100)
committerMilan Crha <mcrha@redhat.com>
Fri, 16 Nov 2012 08:59:51 +0000 (09:59 +0100)
addressbook/backends/ldap/e-book-backend-ldap.c

index 60ae178..955f964 100644 (file)
@@ -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")) {