From 0898f4ad12793bd0e982185622828d13d872c85c Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 2 Jun 1994 16:38:12 +0000 Subject: [PATCH] If the type qualifier is missing, use the default type git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3667 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/ccbase.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/krb5/ccache/ccbase.c b/src/lib/krb5/ccache/ccbase.c index 96c16fee4..264253b78 100644 --- a/src/lib/krb5/ccache/ccbase.c +++ b/src/lib/krb5/ccache/ccbase.c @@ -89,8 +89,12 @@ krb5_error_code krb5_cc_resolve (name, cache) int pfxlen; cp = strchr (name, ':'); - if (!cp) - return KRB5_CC_BADNAME; + if (!cp) { + if (krb5_cc_dfl_ops) + return (*krb5_cc_dfl_ops->resolve)(cache, name); + else + return KRB5_CC_BADNAME; + } pfxlen = cp - name; resid = name + pfxlen + 1; -- 2.26.2