git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c27099
)
s4-libnet_vampire: Reparent result.lp_ctx - we have already referenced it
author
Kamen Mazdrashki
<kamenim@samba.org>
Sun, 3 Oct 2010 01:30:14 +0000
(
04:30
+0300)
committer
Kamen Mazdrashki
<kamenim@samba.org>
Tue, 5 Oct 2010 10:51:14 +0000
(10:51 +0000)
which leads to warning that we are trying to steal
a context with references
source4/libnet/libnet_vampire.c
patch
|
blob
|
history
diff --git
a/source4/libnet/libnet_vampire.c
b/source4/libnet/libnet_vampire.c
index 1b6a8dd24407896a383fbeb353cb025bcfe1f13e..adcb01000531f0806b54454e6eedb3f64cfe90c1 100644
(file)
--- a/
source4/libnet/libnet_vampire.c
+++ b/
source4/libnet/libnet_vampire.c
@@
-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);