mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Make sure slapi_valueset_add_value() copies the input value
This commit is contained in:
parent
e26749d76b
commit
4fbd922a09
1 changed files with 4 additions and 1 deletions
|
|
@ -1995,7 +1995,10 @@ void slapi_valueset_done(Slapi_ValueSet *vs)
|
|||
void slapi_valueset_add_value(Slapi_ValueSet *vs, const Slapi_Value *addval)
|
||||
{
|
||||
#ifdef LDAP_SLAPI
|
||||
ber_bvarray_add( vs, (Slapi_Value *)addval );
|
||||
struct berval bv;
|
||||
|
||||
ber_dupbv( &bv, (Slapi_Value *)addval );
|
||||
ber_bvarray_add( vs, &bv );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue