From eaf678ca527b0fe333027e5044c3cb5448ba4d4b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 13 May 2009 10:12:26 +0200 Subject: [PATCH] fix bogus "out of memory" winbind msg --- source3/rpc_client/cli_lsarpc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c index 37387a0..38ef998 100644 --- a/source3/rpc_client/cli_lsarpc.c +++ b/source3/rpc_client/cli_lsarpc.c @@ -213,7 +213,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")); -- 1.5.5