Fix bug #7155 - valgrind Conditional jump or move depends on uninitialised value...
commitcf789124b2f29f999de1519df0e8698345104bcb
authorJeremy Allison <jra@samba.org>
Thu, 18 Feb 2010 20:21:10 +0000 (18 12:21 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 22 Feb 2010 14:50:35 +0000 (22 15:50 +0100)
tree8a16885548fcb860a2912ffa79f46ef6218e5d74
parent615a5e83ee409fb196252984d697018241e1de62
Fix bug #7155 - valgrind Conditional jump or move depends on uninitialised value(s) error when "mangling method = hash"

The charset array allocated in init_chartest() is allocated
by MALLOC, but only some elements of it being set after allocation. Fix is to
memset to zero after allocation.

Jeremy.
(cherry picked from commit a4e8210ba7d6d471cb9f17754244393b9c1e5930)
(cherry picked from commit fcca63d5fd0b900bc4bdcfbfb21b14f655abbbf7)
source3/smbd/mangle_hash.c