From: Jeffrey Altman Date: Fri, 19 Mar 2004 07:25:08 +0000 (+0000) Subject: Return ERROR_FCC_NOFILE when the principal cannot be determined during X-Git-Tag: krb5-1.4-beta1~531 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=09afc22c665b65c20dc11b69d5f1611d058ed43a;p=krb5.git Return ERROR_FCC_NOFILE when the principal cannot be determined during calls to krb5_lcc_resolve() ticket: 2430 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16186 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/ChangeLog b/src/lib/krb5/ccache/ChangeLog index eaff17736..631313b29 100644 --- a/src/lib/krb5/ccache/ChangeLog +++ b/src/lib/krb5/ccache/ChangeLog @@ -3,6 +3,9 @@ * cc_mslsa.c: Add missing return statements in krb5_lcc_start_seq_get() + Return error if principal name cannot be determined during + krb5_lcc_resolve() + * cc-int.h: New file - Add prototypes for cc internal functions diff --git a/src/lib/krb5/ccache/cc_mslsa.c b/src/lib/krb5/ccache/cc_mslsa.c index 96558726d..44ef45939 100644 --- a/src/lib/krb5/ccache/cc_mslsa.c +++ b/src/lib/krb5/ccache/cc_mslsa.c @@ -1147,6 +1147,11 @@ krb5_lcc_resolve (krb5_context context, krb5_ccache *id, const char *residual) krb5_free_cred_contents(context,&creds); } else { data->princ = 0; + krb5_xfree(data->cc_name); + krb5_xfree(lid->data); + krb5_xfree(lid); + CloseHandle(LogonHandle); + return KRB5_FCC_NOFILE; } /*