*/
maj_stat = gss_krb5_copy_ccache(min_stat, cred, dummy_ccache);
if (maj_stat != 0) {
- krb5_cc_close(context, dummy_ccache);
+ krb5_cc_destroy(context, dummy_ccache);
return maj_stat;
}
code = krb5_cc_start_seq_get(context, dummy_ccache, &cursor);
if (code != 0) {
- krb5_cc_close(context, dummy_ccache);
+ krb5_cc_destroy(context, dummy_ccache);
*min_stat = EINVAL;
return GSS_S_FAILURE;
}
&cursor,
&creds);
if (code != 0) {
- krb5_cc_close(context, dummy_ccache);
+ krb5_cc_destroy(context, dummy_ccache);
*min_stat = EINVAL;
return GSS_S_FAILURE;
}
krb5_cc_end_seq_get(context, dummy_ccache, &cursor);
code = 0;
}
- krb5_cc_close(context, dummy_ccache);
+ krb5_cc_destroy(context, dummy_ccache);
if (code != 0 || princ == NULL) {
krb5_free_cred_contents(context, &creds);