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:
@@ -105,7 +105,7 @@ _kadm5_set_keys2(kadm5_server_context *context,
|
||||
if(key_data[i].key_data_ver == 2) {
|
||||
Salt *salt;
|
||||
|
||||
salt = malloc(sizeof(*salt));
|
||||
salt = calloc(1, sizeof(*salt));
|
||||
if(salt == NULL) {
|
||||
ret = ENOMEM;
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user