summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1999-03-23 22:10:49 +0000
committerTheodore Tso <tytso@mit.edu>1999-03-23 22:10:49 +0000
commit1a9e233627a3df893e0ae014ae80125840934dd0 (patch)
tree933b3bf5299b4230fee49ed99040ef5749aff8f9 /src/lib
parent953e4e3bb58061e79390df43e678ecc0dafb314b (diff)
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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/os/ccdefname.c2
1 files changed, 1 insertions, 1 deletions
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")) {