From: Michael Adam Date: Tue, 22 Jan 2013 16:39:44 +0000 (+0100) Subject: s3:winbindd: check the correct variable for talloc success in rpc_query_user() X-Git-Tag: tevent-0.9.18~361 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7095e9818bba8c43065cc1b1f29551203dc098b;p=thirdparty%2Fsamba.git s3:winbindd: check the correct variable for talloc success in rpc_query_user() Signed-off-by: Michael Adam Reviewed-by: Stefan Metzmacher --- diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c index a96dbb15db2..44deeb071c9 100644 --- a/source3/winbindd/winbindd_rpc.c +++ b/source3/winbindd/winbindd_rpc.c @@ -526,7 +526,7 @@ NTSTATUS rpc_query_user(TALLOC_CTX *mem_ctx, user_info->full_name = talloc_strdup(user_info, info->info21.full_name.string); if ((info->info21.full_name.string != NULL) && - (user_info->acct_name == NULL)) + (user_info->full_name == NULL)) { return NT_STATUS_NO_MEMORY; }