Fix window's get_from_os() call so that gets the default cache name if
authorTheodore Tso <tytso@mit.edu>
Tue, 23 Mar 1999 22:10:49 +0000 (22:10 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 23 Mar 1999 22:10:49 +0000 (22:10 +0000)
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

src/lib/krb5/os/ccdefname.c

index fccdbf833122b387f3b3f554a5f72def749be674..d2bba7dfcf84d94c41e3ed6bef09f15407edb7d2 100644 (file)
@@ -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")) {