summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cli_lsarpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/cli_lsarpc.c b/source3/libsmb/cli_lsarpc.c
index 4f015f20f0..dcc4a65414 100644
--- a/source3/libsmb/cli_lsarpc.c
+++ b/source3/libsmb/cli_lsarpc.c
@@ -275,7 +275,8 @@ uint32 cli_lsa_lookup_sids(struct cli_state *cli, TALLOC_CTX *mem_ctx,
name, &t_names.uni_name[i]);
slprintf(full_name, sizeof(full_name) - 1,
- "%s%s%s", dom_name, dom_name[0] ?
+ "%s%s%s", dom_name,
+ (dom_name[0] && name[0]) ?
lp_winbind_separator() : "", name);
(*names)[i] = talloc_strdup(mem_ctx, full_name);