summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-11-01 12:33:43 +0100
committerMichael Adam <obnox@samba.org>2010-11-01 13:03:33 +0000
commit1ccb69aabb9057d272fc584d648a4ed9ffc0f3b7 (patch)
treebb85c8159caa74347d55ebfd720f4f081da2cca2 /source3
parent53d19fac5f97ca234b75046602455653e2a0b2e7 (diff)
downloadsamba-1ccb69aabb9057d272fc584d648a4ed9ffc0f3b7.tar.gz
samba-1ccb69aabb9057d272fc584d648a4ed9ffc0f3b7.tar.bz2
samba-1ccb69aabb9057d272fc584d648a4ed9ffc0f3b7.zip
s3:winbindd: fix query_user for users with NULL full name.
Not sure whether query_user ever sends a NULL full name. Query Display Info does, and it does not harm to add the check here, too. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Nov 1 13:03:33 UTC 2010 on sn-devel-104
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;
}