use calloc to allocate salt

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24990 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-03-29 09:03:15 +00:00
parent 5bfb2c6578
commit 9ecc9345f6

View File

@@ -105,7 +105,7 @@ _kadm5_set_keys2(kadm5_server_context *context,
if(key_data[i].key_data_ver == 2) { if(key_data[i].key_data_ver == 2) {
Salt *salt; Salt *salt;
salt = malloc(sizeof(*salt)); salt = calloc(1, sizeof(*salt));
if(salt == NULL) { if(salt == NULL) {
ret = ENOMEM; ret = ENOMEM;
goto out; goto out;