Make a copy of "dn" to avoid modification of string literal.

This commit is contained in:
Kurt Zeilenga 1999-05-27 23:04:28 +00:00
parent c1501fd3a7
commit 0ce6ddb80c

View file

@ -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 );