key_data->key_data_contents[j] rather than attempting to free
key_data->key_data_contents.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14678
dc483132-0cff-0310-8789-
dd5450dbe970
+2002-07-31 Tom Yu <tlyu@mit.edu>
+
+ * dump.c (master_key_convert): Iterate over freeing
+ key_data->key_data_contents[j] rather than attempting to free
+ key_data->key_data_contents.
+
2002-07-29 Jen Selby <jenselby@mit.edu>
* kdb5_util.M: added documentation for some options.
krb5_error_code retval;
krb5_keyblock v5plainkey, *key_ptr;
krb5_keysalt keysalt;
- int i;
+ int i, j;
krb5_key_data new_key_data, *key_data;
krb5_boolean is_mkey;
if (retval)
return retval;
krb5_free_keyblock_contents(context, &v5plainkey);
- free(key_data->key_data_contents);
+ for (j = 0; j < key_data->key_data_ver; j++) {
+ if (key_data->key_data_length[j]) {
+ free(key_data->key_data_contents[j]);
+ }
+ }
*key_data = new_key_data;
}
return 0;