summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-06-12 17:23:32 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-06-15 10:51:34 +1000
commitc3135905473e9a03c891f43a12557cfddb63382b (patch)
treecb4c90583f3d8b1af450d0826064ee56c35a5dbf /source4
parent1104b41f1e7d794f0bb52b9f8c96d7fe43ca0edc (diff)
downloadsamba-c3135905473e9a03c891f43a12557cfddb63382b.tar.gz
samba-c3135905473e9a03c891f43a12557cfddb63382b.tar.bz2
samba-c3135905473e9a03c891f43a12557cfddb63382b.zip
s4:libnet Steal ldb and lp_ctx from python result into correct structures.
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/libnet_vampire.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c
index 92757b771e..e1e6a2a95c 100644
--- a/source4/libnet/libnet_vampire.c
+++ b/source4/libnet/libnet_vampire.c
@@ -137,8 +137,8 @@ NTSTATUS libnet_vampire_cb_prepare_db(void *private_data,
return status;
}
- s->ldb = result.samdb;
- s->lp_ctx = result.lp_ctx;
+ s->ldb = talloc_steal(s, result.samdb);
+ s->lp_ctx = talloc_steal(s, result.lp_ctx);
/* wrap the entire vapire operation in a transaction. This
isn't just cosmetic - we use this to ensure that linked