Fix bug #7155 - valgrind Conditional jump or move depends on uninitialised value...
authorJeremy Allison <jra@samba.org>
Thu, 18 Feb 2010 20:21:10 +0000 (12:21 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 18 Feb 2010 20:21:10 +0000 (12:21 -0800)
commita4e8210ba7d6d471cb9f17754244393b9c1e5930
tree270374fcc8dce5cdf3978ac1e171e727aa4b0ff8
parentdf13b1303a751962d8f7d5298b39e4a7500fef15
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.
source3/smbd/mangle_hash.c