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)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Jan 2013 20:57:18 +0000 (21:57 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
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;
        }