char *prefix = krb5_cc_dfl_ops->prefix;
int len;
+ if (get_from_registry(name_buf, name_size) == 0)
+ return 0;
+
if (!strcmp(prefix, "FILE") || !strcmp(prefix, "STDIO")) {
GetWindowsDirectory (defname, sizeof(defname)-7);
strcat (defname, "\\krb5cc");
krb5_error_code retval;
krb5_os_context os_ctx;
+ if (!context || context->magic != KV5M_CONTEXT)
+ return KV5M_CONTEXT;
+
os_ctx = context->os_context;
if (!name)
{
krb5_os_context os_ctx;
+ if (!context || context->magic != KV5M_CONTEXT)
+ return NULL;
+
os_ctx = context->os_context;
if (!os_ctx->default_ccname)
krb5_cc_set_default_name(context, NULL);
return(os_ctx->default_ccname);
}
-