CVS Tag: OPENLDAP_REL_ENG_1_2
Fixed slapd/ldbm/add cache set state deadlock bug
Fixed slapd/ldbm/add,modrdn,delete e_ndn handling
- Fixed -lldap/ldap_init()
+ Fixed -lldap/ldap_init() bug
+ Fixed -lldap/ldap_sort_entries() zero entries bug
Updated ldap_open(3) man page to note ldap_init() is preferred.
Updated internal thread library
Updated slapd/back-shell to use void* private and pid_t
count = ldap_count_entries( ld, *chain );
+
+ if ( count < 0 ) {
+ if( ld != NULL ) {
+ ld->ld_errno = LDAP_PARAM_ERROR;
+ }
+ return -1;
+
+ } else if ( count < 2 ) {
+ /* zero or one entries -- already sorted! */
+ return 0;
+ }
+
if ( (et = (struct entrything *) malloc( count *
sizeof(struct entrything) )) == NULL ) {
ld->ld_errno = LDAP_NO_MEMORY;