mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
don't use dangling stack pointers (more on ITS#6472 fix)
This commit is contained in:
parent
88ffa89ae3
commit
4480b22a91
1 changed files with 10 additions and 2 deletions
|
|
@ -2903,9 +2903,10 @@ syncrepl_del_nonpresent(
|
|||
|
||||
static int
|
||||
syncrepl_add_glue_ancestors(
|
||||
Operation* op,
|
||||
Operation* o,
|
||||
Entry *e )
|
||||
{
|
||||
Operation op2 = *o, *op = &op2;
|
||||
Backend *be = op->o_bd;
|
||||
slap_callback cb = { NULL };
|
||||
Attribute *a;
|
||||
|
|
@ -3041,13 +3042,20 @@ syncrepl_add_glue_ancestors(
|
|||
|
||||
int
|
||||
syncrepl_add_glue(
|
||||
Operation* op,
|
||||
Operation* o,
|
||||
Entry *e )
|
||||
{
|
||||
Operation op2 = *o, *op = &op2;
|
||||
slap_callback cb = { NULL };
|
||||
int rc;
|
||||
Backend *be = op->o_bd;
|
||||
SlapReply rs_add = {REP_RESULT};
|
||||
|
||||
op->o_tag = LDAP_REQ_ADD;
|
||||
op->o_callback = &cb;
|
||||
cb.sc_response = null_callback;
|
||||
cb.sc_private = NULL;
|
||||
|
||||
rc = syncrepl_add_glue_ancestors( op, e );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return rc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue