diff options
author | Andreas Schneider <asn@samba.org> | 2011-01-17 13:39:21 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-01-17 16:50:55 +0100 |
commit | 296a958c5790e9d22e5a6b227d53b2a4d4237420 (patch) | |
tree | 87ce5e1ea8900242526d9e1938b79302e4829b88 /source3 | |
parent | ad6560564350616b2925d097460876bd56555acf (diff) | |
download | samba-296a958c5790e9d22e5a6b227d53b2a4d4237420.tar.gz samba-296a958c5790e9d22e5a6b227d53b2a4d4237420.tar.bz2 samba-296a958c5790e9d22e5a6b227d53b2a4d4237420.zip |
s3-rpc_client: Fixed return values of dcerpc_lsa_lookup_sids_generic.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_client/cli_lsarpc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c index 2ffd1c8f74..af9ed18ce6 100644 --- a/source3/rpc_client/cli_lsarpc.c +++ b/source3/rpc_client/cli_lsarpc.c @@ -354,19 +354,19 @@ static NTSTATUS dcerpc_lsa_lookup_sids_generic(struct dcerpc_binding_handle *h, if (num_sids) { if (!(domains = TALLOC_ARRAY(mem_ctx, char *, num_sids))) { DEBUG(0, ("rpccli_lsa_lookup_sids(): out of memory\n")); - result = NT_STATUS_NO_MEMORY; + status = NT_STATUS_NO_MEMORY; goto fail; } if (!(names = TALLOC_ARRAY(mem_ctx, char *, num_sids))) { DEBUG(0, ("rpccli_lsa_lookup_sids(): out of memory\n")); - result = NT_STATUS_NO_MEMORY; + status = NT_STATUS_NO_MEMORY; goto fail; } if (!(types = TALLOC_ARRAY(mem_ctx, enum lsa_SidType, num_sids))) { DEBUG(0, ("rpccli_lsa_lookup_sids(): out of memory\n")); - result = NT_STATUS_NO_MEMORY; + status = NT_STATUS_NO_MEMORY; goto fail; } } @@ -378,7 +378,7 @@ static NTSTATUS dcerpc_lsa_lookup_sids_generic(struct dcerpc_binding_handle *h, while (sids_left > 0) { int hunk_num_sids; - NTSTATUS hunk_result; + NTSTATUS hunk_result = NT_STATUS_UNSUCCESSFUL; hunk_num_sids = ((sids_left > LOOKUP_SIDS_HUNK_SIZE) ? LOOKUP_SIDS_HUNK_SIZE |