+2004-09-17 Jeffrey Altman <jaltman@mit.edu>
+ * cc_mslsa.c: Fix the error returned when krb5_lcc_start_seq_get()
+ discovers the cache is empty. Check for the new error in
+ krb5_lcc_initialize()
+
2004-09-10 Jeffrey Altman <jaltman@mit.edu>
* cc_mslsa.c: Implement krb5_lcc_initialize()
Remove all tickets from the cache which have a client
return KRB5_FCC_NOFILE;
code = krb5_cc_start_seq_get(context, id, &cursor);
- if (code)
+ if (code) {
+ if (code == KRB5_CC_NOTFOUND)
+ return KRB5_OK;
return code;
+ }
while ( !(code = krb5_cc_next_cred(context, id, &cursor, &cred)) )
{
if (!GetMSTGT(context, data->LogonHandle, data->PackageId, &lcursor->mstgt, TRUE)) {
free(lcursor);
*cursor = 0;
- return KRB5_FCC_INTERNAL;
+ return KRB5_CC_NOTFOUND;
}
#ifdef HAVE_CACHE_INFO_EX2