Skip Menu |

Subject: git commit

Simplify krb5_cccol_have_content()

For the purposes of determining whether Kerberos credentials are
present, just check for an initialized ccache (as detected by
krb5_cc_get_principal()), not one with credentials in it. For KCM and
KEYRING caches, this changes avoids the O(n) expense of starting an

Also fix a potential memory leak if a cache is found after an error is
Author: Greg Hudson <>
Commit: 52c34009598357d6b276eee09a9778ada09b002b
Branch: master
src/include/krb5/krb5.hin | 6 +++---
src/lib/krb5/ccache/cccursor.c | 35 +++++++----------------------------
2 files changed, 10 insertions(+), 31 deletions(-)