diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-06-12 17:23:32 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-06-15 10:51:34 +1000 |
commit | c3135905473e9a03c891f43a12557cfddb63382b (patch) | |
tree | cb4c90583f3d8b1af450d0826064ee56c35a5dbf /source4/libnet | |
parent | 1104b41f1e7d794f0bb52b9f8c96d7fe43ca0edc (diff) | |
download | samba-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/libnet')
-rw-r--r-- | source4/libnet/libnet_vampire.c | 4 |
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 |