return kret;
}
- while ((kret = krb5_cc_next_cred(context, id, &cursor, &fetchcreds)) == KRB5_OK) {
+ while (krb5_cc_next_cred(context, id, &cursor, &fetchcreds) == KRB5_OK) {
if (krb5int_cc_creds_match_request(context, whichfields, mcreds, &fetchcreds))
{
if (ktypes) {
krb5_octet *bp;
size_t remain;
char *ccname;
- size_t namelen;
const char *fnamep;
required = 0;
/* Our identifier */
(void) krb5_ser_pack_int32(KV5M_CCACHE, &bp, &remain);
- /* Calculate the length of the name */
- namelen = ccache->ops->prefix ? strlen(ccache->ops->prefix)+1 : 0;
fnamep = krb5_cc_get_name(kcontext, ccache);
- namelen += (strlen(fnamep)+1);
if (ccache->ops->prefix) {
if (asprintf(&ccname, "%s:%s", ccache->ops->prefix, fnamep) < 0)