mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4-libnet_vampire: Reparent result.lp_ctx - we have already referenced it
which leads to warning that we are trying to steal a context with references
This commit is contained in:
parent
9c27099715
commit
fb0add6605
@ -173,7 +173,7 @@ NTSTATUS libnet_vampire_cb_prepare_db(void *private_data,
|
||||
}
|
||||
|
||||
s->ldb = talloc_steal(s, result.samdb);
|
||||
s->lp_ctx = talloc_steal(s, result.lp_ctx);
|
||||
s->lp_ctx = talloc_reparent(talloc_parent(result.lp_ctx), s, result.lp_ctx);
|
||||
s->provision_schema = dsdb_get_schema(s->ldb, s);
|
||||
s->server_dn_str = talloc_steal(s, p->dest_dsa->server_dn_str);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user