From 98f2421134f7f807014a9618ef2477480812a9e2 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 24 Sep 2009 07:19:33 -0700 Subject: [PATCH] Use krb5_cc_get_type() to get the type, dont assume typename_arg is set MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch from Johan Gadsjö via Joakim Fallsjö --- appl/afsutil/pagsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appl/afsutil/pagsh.c b/appl/afsutil/pagsh.c index 9794b37c6..bfc5dce87 100644 --- a/appl/afsutil/pagsh.c +++ b/appl/afsutil/pagsh.c @@ -138,7 +138,7 @@ main(int argc, char **argv) if (name == NULL) krb5_errx(context, 1, "Generated credential cache have no name"); - snprintf(tf, sizeof(tf), "%s:%s", typename_arg, name); + snprintf(tf, sizeof(tf), "%s:%s", krb5_cc_get_type(context, id), name); ret = krb5_cc_close(context, id); if (ret) -- 2.11.4.GIT