If the type qualifier is missing, use the default type
authorTheodore Tso <tytso@mit.edu>
Thu, 2 Jun 1994 16:38:12 +0000 (16:38 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 2 Jun 1994 16:38:12 +0000 (16:38 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3667 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/ccbase.c

index 96c16fee4b900c1192244a00f530876a728cd7bb..264253b788c9f5d233bda7468c97cd2982862f42 100644 (file)
@@ -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;