Just Wrong here and was causing coredumps.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10102
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Jun 27 17:37:07 1997 Tom Yu <tlyu@mit.edu>
+
+ * keytab.c (add_principal): Don't call kadm5_free_key_data; that's
+ Just Wrong here and was causing coredumps.
+
Wed May 28 13:33:40 1997 Barry Jaspan <bjaspan@mit.edu>
* keytab.c (add_principal): use kadm5_free_key_data
}
cleanup:
- kadm5_free_key_data(handle, &nkeys, &keys);
+ if (nkeys) {
+ for (i = 0; i < nkeys; i++)
+ krb5_free_keyblock_contents(context, &keys[i]);
+ free(keys);
+ }
if (princ)
krb5_free_principal(context, princ);