Fix bug #7155 - valgrind Conditional jump or move depends on uninitialised value...
commit3f2d27f7b3a4528be5dc58b4bb05201c6ffc4825
authorJeremy Allison <jra@samba.org>
Thu, 18 Feb 2010 20:21:10 +0000 (18 12:21 -0800)
committerKarolin Seeger <kseeger@samba.org>
Fri, 19 Feb 2010 13:32:29 +0000 (19 14:32 +0100)
treea89491313308af9546ac737657601a47d9ea5e6d
parent1bf50973818166c798f0dc86e9627a9be7353aa4
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 fd906e77a0959189db767392981a89b5130939e2)
source3/smbd/mangle_hash.c