diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-10-03 04:30:14 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-10-05 10:51:14 +0000 |
commit | fb0add66055f68edc849e29b3609e268b9c7a766 (patch) | |
tree | 0414d6bd372677b91587a1ea0c51ae7cb3e79db6 /source4/libnet | |
parent | 9c27099715b248206c2d5ca9e7db22532ad9f994 (diff) | |
download | samba-fb0add66055f68edc849e29b3609e268b9c7a766.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c index 1b6a8dd2440..adcb0100053 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); |