[krbdev.mit.edu #8998] git commit
Greg Hudson via RT
rt-comment at krbdev.mit.edu
Mon Apr 5 19:33:52 EDT 2021
Mon Apr 05 19:33:52 2021: Request 8998 was acted upon.
Transaction: Ticket created by ghudson at mit.edu
Queue: krb5
Subject: git commit
Owner: ghudson at mit.edu
Requestors:
Status: new
Ticket <URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=8998 >
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 at 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(-)
More information about the krb5-bugs
mailing list