From 296a958c5790e9d22e5a6b227d53b2a4d4237420 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 17 Jan 2011 13:39:21 +0100 Subject: s3-rpc_client: Fixed return values of dcerpc_lsa_lookup_sids_generic. --- source3/rpc_client/cli_lsarpc.c | 8 ++++---- 1 file 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 -- cgit