diff options
author | Barry Jaspan <bjaspan@mit.edu> | 1997-05-28 17:34:09 +0000 |
---|---|---|
committer | Barry Jaspan <bjaspan@mit.edu> | 1997-05-28 17:34:09 +0000 |
commit | 8420ba340cae832813f416be0cfb3814d76b70ad (patch) | |
tree | d5036d2645c25489ee9996a64980d4e3f1a989b5 /src/kadmin | |
parent | 3138aec8445d174830a6a313dadfaa4902811ed2 (diff) | |
download | krb5-8420ba340cae832813f416be0cfb3814d76b70ad.tar.gz krb5-8420ba340cae832813f416be0cfb3814d76b70ad.tar.xz krb5-8420ba340cae832813f416be0cfb3814d76b70ad.zip |
* keytab.c (add_principal): use kadm5_free_key_data
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10088 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin')
-rw-r--r-- | src/kadmin/cli/ChangeLog | 4 | ||||
-rw-r--r-- | src/kadmin/cli/keytab.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/kadmin/cli/ChangeLog b/src/kadmin/cli/ChangeLog index 2847e9fee3..0869c12365 100644 --- a/src/kadmin/cli/ChangeLog +++ b/src/kadmin/cli/ChangeLog @@ -1,3 +1,7 @@ +Wed May 28 13:33:40 1997 Barry Jaspan <bjaspan@mit.edu> + + * keytab.c (add_principal): use kadm5_free_key_data + Tue Feb 4 20:56:47 1997 Tom Yu <tlyu@mit.edu> * Makefile.in: diff --git a/src/kadmin/cli/keytab.c b/src/kadmin/cli/keytab.c index df4f6ce257..56724491f0 100644 --- a/src/kadmin/cli/keytab.c +++ b/src/kadmin/cli/keytab.c @@ -255,11 +255,7 @@ int add_principal(void *handle, char *keytab_str, krb5_keytab keytab, } cleanup: - if (nkeys) { - for (i = 0; i < nkeys; i++) - krb5_free_keyblock_contents(context, &keys[i]); - free(keys); - } + kadm5_free_key_data(handle, &nkeys, &keys); if (princ) krb5_free_principal(context, princ); |