s3-rpc_client: Fixed return values of dcerpc_lsa_lookup_sids_generic.
authorAndreas Schneider <asn@samba.org>
Mon, 17 Jan 2011 12:39:21 +0000 (13:39 +0100)
committerAndreas Schneider <asn@samba.org>
Mon, 17 Jan 2011 15:50:55 +0000 (16:50 +0100)
source3/rpc_client/cli_lsarpc.c

index 2ffd1c8f749a0452df35014750bc3d75f235a603..af9ed18ce61934b7b5e9b2553aa9de5aaf10fc25 100644 (file)
@@ -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