mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
pblock_add_control() needs to call slapi_dup_control()
This commit is contained in:
parent
f1e604a3ac
commit
f32bfe729f
@ -762,7 +762,7 @@ pblock_add_control( Slapi_PBlock *pb, LDAPControl *control )
|
||||
|
||||
controls = (LDAPControl **)slapi_ch_realloc( (char *)controls,
|
||||
( i + 2 ) * sizeof(LDAPControl *));
|
||||
controls[i] = control;
|
||||
controls[i] = slapi_dup_control( control );
|
||||
|
||||
return pblock_set_default( pb, SLAPI_RESCONTROLS, (void *)controls );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user