Skip Menu |
 

From: ghudson@mit.edu
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
iteration.

Also fix a potential memory leak if a cache is found after an error is
saved.

https://github.com/krb5/krb5/commit/52c34009598357d6b276eee09a9778ada09b002b
Author: Greg Hudson <ghudson@mit.edu>
Commit: 52c34009598357d6b276eee09a9778ada09b002b
Branch: master
src/include/krb5/krb5.hin | 6 +++---
src/lib/krb5/ccache/cccursor.c | 35 +++++++----------------------------
2 files changed, 10 insertions(+), 31 deletions(-)