krb5 commit: Fix config check in krb5_cccol_have_content

Greg Hudson ghudson at MIT.EDU
Fri Jun 22 11:51:37 EDT 2012


https://github.com/krb5/krb5/commit/a2c55a8fe63e67dd8389fb30e8b8103e83124cec
commit a2c55a8fe63e67dd8389fb30e8b8103e83124cec
Author: Greg Hudson <ghudson at mit.edu>
Date:   Mon Jun 18 21:40:44 2012 -0400

    Fix config check in krb5_cccol_have_content
    
    krb5_is_config_principal should be invoked on creds.server, not
    creds.client.
    
    ticket: 7173

 src/lib/krb5/ccache/cccursor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lib/krb5/ccache/cccursor.c b/src/lib/krb5/ccache/cccursor.c
index 2b1893a..e156112 100644
--- a/src/lib/krb5/ccache/cccursor.c
+++ b/src/lib/krb5/ccache/cccursor.c
@@ -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);
         }


More information about the cvs-krb5 mailing list