From: Richard Basch Date: Wed, 6 Mar 1996 21:41:22 +0000 (+0000) Subject: * kprop.c: The credentials cache should be destroyed after any error X-Git-Tag: krb5-1.0-beta6~402 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ea9c2404999a6cfaba170e6407e5d3106c22507b;p=krb5.git * kprop.c: The credentials cache should be destroyed after any error git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7598 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/slave/ChangeLog b/src/slave/ChangeLog index fe6c8bacf..179178171 100644 --- a/src/slave/ChangeLog +++ b/src/slave/ChangeLog @@ -1,3 +1,7 @@ +Wed Mar 6 16:15:46 1996 Richard Basch + + * kprop.c: The credentials cache should be destroyed after any error. + Tue Mar 5 12:20:00 1996 Richard Basch * kprop.c: Call krb5_sname_to_principal rather than doing the OS diff --git a/src/slave/kprop.c b/src/slave/kprop.c index 3166dfffe..9f8a28772 100644 --- a/src/slave/kprop.c +++ b/src/slave/kprop.c @@ -255,6 +255,7 @@ void get_tickets(context) 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) { @@ -268,11 +269,13 @@ void get_tickets(context) */ 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); } } @@ -281,6 +284,7 @@ void get_tickets(context) NULL, keytab, ccache, &creds, 0); if (retval) { com_err(progname, retval, "while getting initial ticket\n"); + (void) krb5_cc_destroy(context, ccache); exit(1); } /*