From 1ccb69aabb9057d272fc584d648a4ed9ffc0f3b7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 1 Nov 2010 12:33:43 +0100 Subject: 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 Autobuild-Date: Mon Nov 1 13:03:33 UTC 2010 on sn-devel-104 --- source3/winbindd/winbindd_rpc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/winbindd') 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; } -- cgit