From fb0add66055f68edc849e29b3609e268b9c7a766 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Sun, 3 Oct 2010 04:30:14 +0300 Subject: 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 --- source4/libnet/libnet_vampire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/libnet') 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); -- cgit