+1999-09-01 Danilo Almeida <dalmeida@mit.edu>
+
+ * klist.c (do_ccache, show_credential): Use krb5_free_unparsed_name
+ instead of free.
+
+1999-08-26 Danilo Almeida <dalmeida@mit.edu>
+
+ * klist.c (show_credential): Index addresses array with i
+ in a loop instead of 1. (Thanks to jaltman@columbia.edu)
+
1999-08-09 Danilo Almeida <dalmeida@mit.edu>
* Makefile.in: Use standard windows exe link flags.
printf(")");
}
printf("\n");
- free(pname);
+ krb5_free_unparsed_name(kcontext, pname);
}
if (code && code != KRB5_KT_END) {
com_err(progname, code, "while scanning keytab");
retval = krb5_unparse_name(kcontext, cred->server, &sname);
if (retval) {
com_err(progname, retval, "while unparsing server name");
- free(name);
+ krb5_free_unparsed_name(kcontext, name);
return;
}
if (!cred->times.starttime)
for (i=1; cred->addresses[i]; i++) {
printf(", ");
- one_addr(cred->addresses[1]);
+ one_addr(cred->addresses[i]);
}
printf("\n");
}
}
- free(name);
- free(sname);
+ krb5_free_unparsed_name(kcontext, name);
+ krb5_free_unparsed_name(kcontext, sname);
}
void one_addr(a)