{
int code = ENOENT;
#ifdef HAVE_KERBEROS
- krb5_context context;
+ krb5_context context = NULL;
krb5_creds match;
krb5_creds *cred;
krb5_ccache cc;
krb5_free_cred_contents(context, &match);
if (cc)
krb5_cc_close(context, cc);
- krb5_free_context(context);
goto try_anon;
}
krb5_free_cred_contents(context, &match);
if (cc)
krb5_cc_close(context, cc);
- krb5_free_context(context);
goto try_anon;
}
}
cell->scindex = 2;
return 0;
- try_anon:
+ try_anon:
+ if (context != NULL) {
+ krb5_free_context(context);
+ }
#endif /* HAVE_KERBEROS */
if (try_anonymous)
return _GetNullSecurityObject(cell);