[16729] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

[krbdev.mit.edu #8998] git commit

daemon@ATHENA.MIT.EDU (Greg Hudson via RT)
Mon Apr 5 19:33:58 2021

From: "Greg Hudson via RT" <rt-comment@krbdev.mit.edu>
In-Reply-To: 
Message-ID: <rt-4.4.4-44713-1617665632-1292.8998-4-0@mit.edu>
To: "AdminCc of krbdev.mit.edu Ticket #8998":;
Date: Mon, 05 Apr 2021 19:33:52 -0400
MIME-Version: 1.0
Reply-To: rt-comment@krbdev.mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krb5-bugs-bounces@mit.edu


Mon Apr 05 19:33:52 2021: Request 8998 was acted upon.
 Transaction: Ticket created by ghudson@mit.edu
       Queue: krb5
     Subject: git commit
       Owner: ghudson@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@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(-)

_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs

home help back first fref pref prev next nref lref last post