summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2010-04-12 03:45:12 +0300
committerKamen Mazdrashki <kamenim@samba.org>2010-04-12 04:20:36 +0300
commita9e4abaa6e72425017953f95e2f22cc4af6d7455 (patch)
treed1347b951d0b013b50b92be285820baf68a4ad7b /source4/libnet
parent82b8bbdfac3a9bf7daded97173d205764f14670a (diff)
downloadsamba-a9e4abaa6e72425017953f95e2f22cc4af6d7455.tar.gz
samba-a9e4abaa6e72425017953f95e2f22cc4af6d7455.tar.bz2
samba-a9e4abaa6e72425017953f95e2f22cc4af6d7455.zip
s4/libnet: Allocate mem in supplied mem_ctx
In this case, 'libnet_Vampire *r' may not be a pointer to a talloced memory.
Diffstat (limited to 'source4/libnet')
-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 a276828cca..8d2393fc2a 100644
--- a/source4/libnet/libnet_vampire.c
+++ b/source4/libnet/libnet_vampire.c
@@ -760,8 +760,8 @@ NTSTATUS libnet_Vampire(struct libnet_context *ctx, TALLOC_CTX *mem_ctx,
return status;
}
- r->out.domain_name = talloc_steal(r, join->out.domain_name);
- r->out.domain_sid = dom_sid_dup(r, join->out.domain_sid);
+ r->out.domain_name = talloc_steal(mem_ctx, join->out.domain_name);
+ r->out.domain_sid = dom_sid_dup(mem_ctx, join->out.domain_sid);
/* commit the transaction now we know the secrets were written
* out properly