mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 02:29:34 -05:00
Apply string literal strdup fix to BDB2.
This commit is contained in:
parent
0ce6ddb80c
commit
a0d2b3c5a0
1 changed files with 5 additions and 1 deletions
|
|
@ -38,7 +38,11 @@ bdb2i_index_add_entry(
|
|||
bvals[1] = NULL;
|
||||
|
||||
/* add the dn to the indexes */
|
||||
bdb2i_index_add_values( be, "dn", bvals, e->e_id );
|
||||
{
|
||||
char *dn = ch_strdup( "dn" );
|
||||
bdb2i_index_add_values( be, dn, bvals, e->e_id );
|
||||
free( dn );
|
||||
}
|
||||
|
||||
free( bv.bv_val );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue