diff options
author | Andreas Schneider <asn@samba.org> | 2010-06-11 11:48:37 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2010-07-05 15:59:05 +0200 |
commit | 30d25210a97403c083f7f8babe2eaa4d4cdfc1ad (patch) | |
tree | e2ae78dd85adf712c0edade30c2a1db8253c235e /source3/rpc_client | |
parent | 7d013f4065caad4caf742adc37b0b7622419de1a (diff) | |
download | samba-30d25210a97403c083f7f8babe2eaa4d4cdfc1ad.tar.gz |
s3-rpc_client: Use the right memory context for array elements.
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_lsarpc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c index 649200a967f..72514e7f5e5 100644 --- a/source3/rpc_client/cli_lsarpc.c +++ b/source3/rpc_client/cli_lsarpc.c @@ -225,7 +225,7 @@ static NTSTATUS rpccli_lsa_lookup_sids_noalloc(struct rpc_pipe_client *cli, name = lsa_names.names[i].name.string; if (name) { - (names)[i] = talloc_strdup(mem_ctx, name); + (names)[i] = talloc_strdup(names, name); if ((names)[i] == NULL) { DEBUG(0, ("cli_lsa_lookup_sids_noalloc(): out of memory\n")); result = NT_STATUS_UNSUCCESSFUL; @@ -234,8 +234,8 @@ static NTSTATUS rpccli_lsa_lookup_sids_noalloc(struct rpc_pipe_client *cli, } else { (names)[i] = NULL; } - domains[i] = talloc_strdup( - mem_ctx, dom_name ? dom_name : ""); + domains[i] = talloc_strdup(domains, + dom_name ? dom_name : ""); (types)[i] = lsa_names.names[i].sid_type; if (((domains)[i] == NULL)) { DEBUG(0, ("cli_lsa_lookup_sids_noalloc(): out of memory\n")); |