diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_usershare.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_usershare.c b/source3/utils/net_usershare.c index 586d1646a9..b4d04bf338 100644 --- a/source3/utils/net_usershare.c +++ b/source3/utils/net_usershare.c @@ -368,8 +368,8 @@ static int info_fn(struct file_list *fl, void *priv) ntstatus = net_lookup_name_from_sid(ctx, &psd->dacl->ace[num_aces].trustee, &domain, &name); - if (!NT_STATUS_IS_OK(ntstatus)) { - if (*domain) { + if (NT_STATUS_IS_OK(ntstatus)) { + if (domain && *domain) { pstrcat(acl_str, domain); pstrcat(acl_str, sep_str); } |