s3-perfcount: fix incorrect array length calculations fix_reg_perfcount
authorDavid Disseldorp <ddiss@suse.de>
Tue, 3 Jan 2012 09:14:23 +0000 (10:14 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Tue, 3 Jan 2012 13:29:35 +0000 (14:29 +0100)
commit4f54be64e9fcf7770f0900b4e6b234d15013d354
tree21b3b1a7d7d5e32de55b6a407ca31edcef778b5b
parent1464bde149042999ddb3cac58ec963ec2edf6cd4
s3-perfcount: fix incorrect array length calculations

As reported by Ismail Doenmez (idonmez@suse.com), sizeof() is
incorrectly used by _reg_perfcount_init_data_block() in an attempt to
determine the length of a talloced array.
source3/registry/reg_perfcount.c