+Wed Mar 6 16:15:46 1996 Richard Basch <basch@lehman.com>
+
+ * kprop.c: The credentials cache should be destroyed after any error.
+
Tue Mar 5 12:20:00 1996 Richard Basch <basch@lehman.com>
* kprop.c: Call krb5_sname_to_principal rather than doing the OS
KRB5_NT_SRV_HST, &creds.server);
if (retval) {
com_err(progname, errno, "while setting server principal name");
+ (void) krb5_cc_destroy(context, ccache);
exit(1);
}
if (realm) {
*/
if (retval = krb5_copy_principal(context, my_principal, &creds.client)) {
com_err(progname, retval, "While copying client principal");
+ (void) krb5_cc_destroy(context, ccache);
exit(1);
}
if (srvtab) {
if (retval = krb5_kt_resolve(context, srvtab, &keytab)) {
com_err(progname, retval, "while resolving keytab");
+ (void) krb5_cc_destroy(context, ccache);
exit(1);
}
}
NULL, keytab, ccache, &creds, 0);
if (retval) {
com_err(progname, retval, "while getting initial ticket\n");
+ (void) krb5_cc_destroy(context, ccache);
exit(1);
}
/*