s3:winbindd: check the correct variable for talloc success in rpc_query_user()
authorMichael Adam <obnox@samba.org>
Tue, 22 Jan 2013 16:39:44 +0000 (17:39 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 6 Feb 2013 09:08:14 +0000 (10:08 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit b7095e9818bba8c43065cc1b1f29551203dc098b)

source3/winbindd/winbindd_rpc.c

index a96dbb15db2cca1ae38f9662f4a98d8ce4d63935..44deeb071c946a8118c7217cec5e4b6957f39596 100644 (file)
@@ -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;
        }