mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
Make a copy of "dn" to avoid modification of string literal.
This commit is contained in:
parent
c1501fd3a7
commit
0ce6ddb80c
1 changed files with 5 additions and 1 deletions
|
|
@ -38,7 +38,11 @@ index_add_entry(
|
|||
bvals[1] = NULL;
|
||||
|
||||
/* add the dn to the indexes */
|
||||
index_add_values( be, "dn", bvals, e->e_id );
|
||||
{
|
||||
char *dn = ch_strdup("dn");
|
||||
index_add_values( be, dn, bvals, e->e_id );
|
||||
free( dn );
|
||||
}
|
||||
|
||||
free( bv.bv_val );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue