From: Barry Jaspan Date: Wed, 28 May 1997 17:34:09 +0000 (+0000) Subject: * keytab.c (add_principal): use kadm5_free_key_data X-Git-Tag: krb5-1.1-beta1~1136 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8420ba340cae832813f416be0cfb3814d76b70ad;p=krb5.git * keytab.c (add_principal): use kadm5_free_key_data git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10088 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/cli/ChangeLog b/src/kadmin/cli/ChangeLog index 2847e9fee..0869c1236 100644 --- a/src/kadmin/cli/ChangeLog +++ b/src/kadmin/cli/ChangeLog @@ -1,3 +1,7 @@ +Wed May 28 13:33:40 1997 Barry Jaspan + + * keytab.c (add_principal): use kadm5_free_key_data + Tue Feb 4 20:56:47 1997 Tom Yu * Makefile.in: diff --git a/src/kadmin/cli/keytab.c b/src/kadmin/cli/keytab.c index df4f6ce25..56724491f 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);