Ensure data structures allocated by hprop are initialized
commitff36b611da6644194285a97d6722b60099cec5cf
authorRuss Allbery <rra@stanford.edu>
Thu, 28 Jan 2010 23:06:42 +0000 (28 15:06 -0800)
committerLove Hornquist Astrand <lha@h5l.org>
Wed, 3 Feb 2010 04:45:05 +0000 (2 20:45 -0800)
tree392b4a91f94d545a1054b4ba72d703c13f30d517
parentcab8c34900a6f04cfad3e096a9d1989595555081
Ensure data structures allocated by hprop are initialized

Use calloc instead of malloc when allocating data structures while
importing a dump in hprop.  Fixes a crash in hprop when reading MIT
dump files due unintialized memory in the Salt data structure, plus
will be more robust against any future changes to the data model.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
kdc/headers.h