(acc_get_name): just return the cache_name directly instead of trying

to resolve it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22667 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-03-09 23:08:32 +00:00
parent 574683e7ab
commit 32809668a9

View File

@@ -406,18 +406,7 @@ static const char*
acc_get_name(krb5_context context, acc_get_name(krb5_context context,
krb5_ccache id) krb5_ccache id)
{ {
krb5_acc *a = ACACHE(id); return ACACHE(id)->cache_name;
static char n[255];
char *name;
name = get_cc_name(a->ccache);
if (name == NULL) {
krb5_set_error_string(context, "malloc: out of memory");
return NULL;
}
strlcpy(n, name, sizeof(n));
free(name);
return n;
} }
static krb5_error_code static krb5_error_code