mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-19 14:30:57 +08:00
ITS#189 fix: indexed normalized(e_dn) without recomputing length.
Changed to use e_ndn and it's length.
This commit is contained in:
parent
73ba852017
commit
bfd1c3a378
1
CHANGES
1
CHANGES
@ -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
|
||||
|
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user