summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_rpc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c
index 0b101e4744..47d8f34e1b 100644
--- a/source3/winbindd/winbindd_rpc.c
+++ b/source3/winbindd/winbindd_rpc.c
@@ -502,7 +502,9 @@ NTSTATUS rpc_query_user(TALLOC_CTX *mem_ctx,
user_info->full_name = talloc_strdup(user_info,
info->info21.full_name.string);
- if (user_info->acct_name == NULL) {
+ if ((info->info21.full_name.string != NULL) &&
+ (user_info->acct_name == NULL))
+ {
return NT_STATUS_NO_MEMORY;
}