mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-08 16:04:47 -05:00
pblock_add_control() needs to call slapi_dup_control()
This commit is contained in:
parent
f1e604a3ac
commit
f32bfe729f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue