[krbdev.mit.edu #8998] git commit

"Greg Hudson via RT" <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.bugs
Message-ID <[email protected]>
Mon Apr 05 19:33:52 2021: Request 8998 was acted upon.
 Transaction: Ticket created by [email protected]
       Queue: krb5
     Subject: git commit
       Owner: [email protected]
  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 <[email protected]>
Commit: 52c34009598357d6b276eee09a9778ada09b002b
Branch: master
 src/include/krb5/krb5.hin      |    6 +++---
 src/lib/krb5/ccache/cccursor.c |   35 +++++++----------------------------
 2 files changed, 10 insertions(+), 31 deletions(-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.