In cli_lsa_lookup_sids don't leave the domain field uninitialized if
authorVolker Lendecke <vlendec@samba.org>
Wed, 22 Oct 2003 07:29:18 +0000 (07:29 +0000)
committerVolker Lendecke <vlendec@samba.org>
Wed, 22 Oct 2003 07:29:18 +0000 (07:29 +0000)
some sid could not be mapped. Otherwise this call is unnecessarily
complicated to call.

Volker
(This used to be commit 1337338522242a430b3c5655ffdff3f701fbfcce)

source3/rpc_client/cli_lsarpc.c

index 65115419b47a32664e16d70e28f2c267af809d6c..ab4fbad6131357c30cdcd33b8acaf2081529fdbc 100644 (file)
@@ -322,6 +322,7 @@ NTSTATUS cli_lsa_lookup_sids(struct cli_state *cli, TALLOC_CTX *mem_ctx,
 
                } else {
                        (*names)[i] = NULL;
+                       (*domains)[i] = NULL;
                        (*types)[i] = SID_NAME_UNKNOWN;
                }
        }