remove free

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6100 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-05-03 17:14:22 +00:00
parent 8e1f2aba53
commit 5865b0a4a4

View File

@@ -113,10 +113,8 @@ _kadm5_set_keys2(hdb_entry *ent,
if(key_data[i].key_data_ver == 2) {
Salt *salt;
salt = malloc(sizeof(*salt));
if(salt == NULL) {
free_EncryptionKey(&ent->keys);
if(salt == NULL)
return ENOMEM;
}
ent->keys.val[i].salt = salt;
salt->type = key_data[i].key_data_type[1];
krb5_data_copy(&salt->salt,