diff options
author | Kamen Mazdrashki <kamenim@samba.org> | 2010-04-12 03:45:12 +0300 |
---|---|---|
committer | Kamen Mazdrashki <kamenim@samba.org> | 2010-04-12 04:20:36 +0300 |
commit | a9e4abaa6e72425017953f95e2f22cc4af6d7455 (patch) | |
tree | d1347b951d0b013b50b92be285820baf68a4ad7b | |
parent | 82b8bbdfac3a9bf7daded97173d205764f14670a (diff) | |
download | samba-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.
-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 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 |