2009-07-28 [colin] 3.7.2cvs14
[claws.git] / src / ldapquery.c
index 70af9f3a94c6804074443058b07cc61e072883ec..d7597c47507e898195523526a9a492ff012dc0bb 100644 (file)
@@ -856,7 +856,7 @@ static gint ldapqry_search_retrieve( LdapQuery *qry ) {
        else if( rc == LDAP_SUCCESS ) {
                searchFlag = TRUE;
        }
-       else if( rc == LDAP_PARTIAL_RESULTS ) {
+       else if( rc == LDAP_PARTIAL_RESULTS || ldap_count_entries(ld, result) > 0 ) {
                searchFlag = TRUE;
        }
        else {