1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3:winbindd: check the correct variable for talloc success in rpc_query_user()

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Michael Adam 2013-01-22 17:39:44 +01:00 committed by Stefan Metzmacher
parent 40e3df7c37
commit b7095e9818

View File

@ -526,7 +526,7 @@ NTSTATUS rpc_query_user(TALLOC_CTX *mem_ctx,
user_info->full_name = talloc_strdup(user_info, user_info->full_name = talloc_strdup(user_info,
info->info21.full_name.string); info->info21.full_name.string);
if ((info->info21.full_name.string != NULL) && if ((info->info21.full_name.string != NULL) &&
(user_info->acct_name == NULL)) (user_info->full_name == NULL))
{ {
return NT_STATUS_NO_MEMORY; return NT_STATUS_NO_MEMORY;
} }