ITS#189 fix: indexed normalized(e_dn) without recomputing length.

Changed to use e_ndn and it's length.
This commit is contained in:
Kurt Zeilenga 1999-06-02 00:16:48 +00:00
parent 73ba852017
commit bfd1c3a378
2 changed files with 3 additions and 3 deletions

View File

@ -2,6 +2,7 @@ OpenLDAP Change Log
Changes included in OpenLDAP 1.2 Release Engineering
CVS Tag: OPENLDAP_REL_ENG_1_2
Fixed indexing of normalized dn length bug (ITS#189)
Changes included in OpenLDAP 1.2.2
CVS Tag: OPENLDAP_REL_ENG_1_2_2

View File

@ -32,9 +32,8 @@ index_add_entry(
* with index_add_values() call
*/
bv.bv_val = ch_strdup( e->e_dn );
bv.bv_val = ch_strdup( e->e_ndn );
bv.bv_len = strlen( bv.bv_val );
(void) dn_normalize_case( bv.bv_val );
bvals[0] = &bv;
bvals[1] = NULL;
@ -53,7 +52,7 @@ index_add_entry(
}
Debug( LDAP_DEBUG_TRACE, "<= index_add( %ld, \"%s\" ) 0\n", e->e_id,
e->e_dn, 0 );
e->e_ndn, 0 );
return( 0 );
}