remove free
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6100 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -113,10 +113,8 @@ _kadm5_set_keys2(hdb_entry *ent,
|
|||||||
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 = malloc(sizeof(*salt));
|
||||||
if(salt == NULL) {
|
if(salt == NULL)
|
||||||
free_EncryptionKey(&ent->keys);
|
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
}
|
|
||||||
ent->keys.val[i].salt = salt;
|
ent->keys.val[i].salt = salt;
|
||||||
salt->type = key_data[i].key_data_type[1];
|
salt->type = key_data[i].key_data_type[1];
|
||||||
krb5_data_copy(&salt->salt,
|
krb5_data_copy(&salt->salt,
|
||||||
|
Reference in New Issue
Block a user