#include <krb5/copyright.h>
#include <krb5/krb5.h>
-static krb5_ccache default_ccache;
-
-krb5_ccache krb5_cc_default()
+krb5_error_code krb5_cc_default(ccache)
+krb5_ccache *ccache;
{
- if (default_ccache == 0)
- krb5_cc_resolve(krb5_cc_default_name(), &default_ccache);
-
- /* ignore errors; any error will be fatal in future derefs by the
- caller. */
-
- return default_ccache;
+ return krb5_cc_resolve(krb5_cc_default_name(), ccache);
}