From: Theodore Tso Date: Tue, 23 Mar 1999 22:10:49 +0000 (+0000) Subject: Fix window's get_from_os() call so that gets the default cache name if X-Git-Tag: krb5-1.1-beta1~267 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1a9e233627a3df893e0ae014ae80125840934dd0;p=krb5.git Fix window's get_from_os() call so that gets the default cache name if the strategy of getting the information from the registry fails (which it normally will, since this is used only for PC-DCE compatibility). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11301 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ccdefname.c b/src/lib/krb5/os/ccdefname.c index fccdbf833..d2bba7dfc 100644 --- a/src/lib/krb5/os/ccdefname.c +++ b/src/lib/krb5/os/ccdefname.c @@ -84,7 +84,7 @@ static krb5_error_code get_from_os(char *name_buf, int name_size) char *prefix = krb5_cc_dfl_ops->prefix; int len; - if (get_from_registry(name_buf, name_size) == 0) + if (get_from_registry(name_buf, name_size) != 0) return 0; if (!strcmp(prefix, "FILE") || !strcmp(prefix, "STDIO")) {