fix bogus "out of memory" winbind msg
authorVolker Lendecke <vl@samba.org>
Wed, 13 May 2009 08:12:26 +0000 (10:12 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 13 Nov 2009 10:36:06 +0000 (11:36 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
source3/rpc_client/cli_lsarpc.c

index d49fa47f57a3cf0b8f4abee6f466134e74202e9a..74fd08276c35e45b67bcff2fe7bdd5d01dbd660e 100644 (file)
@@ -232,7 +232,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);
+                       domains[i] = talloc_strdup(
+                               mem_ctx, 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"));