CVE-2013-4408:s3:Ensure LookupNames replies arrays are range checked.
[samba.git] / source3 / rpc_server / netlogon / srv_netlog_nt.c
index 3fd93bcb2805cec1820cbd80d5aca7e288ab249f..3b1cdcff287c626f371d80f507cab9fb38572b13 100644 (file)
@@ -586,7 +586,7 @@ static NTSTATUS samr_find_machine_account(TALLOC_CTX *mem_ctx,
                status = NT_STATUS_NO_SUCH_USER;
                goto out;
        }
-       if (rids.count != types.count) {
+       if (types.count != 1) {
                status = NT_STATUS_INVALID_PARAMETER;
                goto out;
        }