summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-13 10:12:26 +0200
committerMichael Adam <obnox@samba.org>2009-11-13 11:36:06 +0100
commit92a16b91e86865833ea2d47d2dff81d5df0f5a27 (patch)
treeca8dd788ea4ddf4e8481f44e4df698116ed1ca2f /source3/rpc_client
parentc8884e1cf2f9fe08b464c34c25ce682ff3450b34 (diff)
downloadsamba-92a16b91e86865833ea2d47d2dff81d5df0f5a27.tar.gz
samba-92a16b91e86865833ea2d47d2dff81d5df0f5a27.tar.bz2
samba-92a16b91e86865833ea2d47d2dff81d5df0f5a27.zip
fix bogus "out of memory" winbind msg
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_lsarpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c
index d49fa47f57..74fd08276c 100644
--- a/source3/rpc_client/cli_lsarpc.c
+++ b/source3/rpc_client/cli_lsarpc.c
@@ -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"));