(gss_krb5_import_ccache): Use krb5_cc_get_full_name.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16275 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-11-01 09:41:59 +00:00
parent 333284ed2e
commit d7396a3cea
2 changed files with 4 additions and 18 deletions

View File

@@ -115,18 +115,11 @@ gss_krb5_import_ccache(OM_uint32 *minor_status,
}
{
const char *type, *name;
char *str;
type = krb5_cc_get_type(gssapi_krb5_context, in);
name = krb5_cc_get_name(gssapi_krb5_context, in);
if (asprintf(&str, "%s:%s", type, name) == -1) {
krb5_set_error_string(gssapi_krb5_context,
"malloc - out of memory");
kret = ENOMEM;
kret = krb5_cc_get_full_name(gssapi_krb5_context, in, &str);
if (kret)
goto out;
}
kret = krb5_cc_resolve(gssapi_krb5_context, str, &handle->ccache);
free(str);