Commit bfd1c3a3 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

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

Changed to use e_ndn and it's length.
parent 73ba8520
......@@ -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 );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment