]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix config check in krb5_cccol_have_content
authorGreg Hudson <ghudson@mit.edu>
Tue, 19 Jun 2012 01:40:44 +0000 (21:40 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 22 Jun 2012 15:48:49 +0000 (11:48 -0400)
krb5_is_config_principal should be invoked on creds.server, not
creds.client.

ticket: 7173

src/lib/krb5/ccache/cccursor.c

index 2b1893a6c48dc57e42de5ad865e09c124e0c3c61..e15611248383b56e4c8b5d873255f6b204ecb964 100644 (file)
@@ -237,7 +237,7 @@ krb5_cccol_have_content(krb5_context context)
             continue;
         while (!found &&
                !krb5_cc_next_cred(context, cache, &cache_cursor, &creds)) {
-            if (!krb5_is_config_principal(context, creds.client))
+            if (!krb5_is_config_principal(context, creds.server))
                 found = TRUE;
             krb5_free_cred_contents(context, &creds);
         }