summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-10-03 04:30:14 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-10-05 10:51:14 +0000
commitfb0add66055f68edc849e29b3609e268b9c7a766 (patch)
tree0414d6bd372677b91587a1ea0c51ae7cb3e79db6 /source4/libnet
parent9c27099715b248206c2d5ca9e7db22532ad9f994 (diff)
downloadsamba-fb0add66055f68edc849e29b3609e268b9c7a766.tar.gz
samba-fb0add66055f68edc849e29b3609e268b9c7a766.tar.bz2
samba-fb0add66055f68edc849e29b3609e268b9c7a766.zip
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
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_vampire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c
index 1b6a8dd244..adcb010005 100644
--- 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);