[krbdev.mit.edu #9103] git commit

"Greg Hudson via RT" <[email protected]> Sat, 02 Sep 2023 22:37:04 -0400
Newsgroups gmane.comp.encryption.kerberos.bugs
Message-ID <[email protected]>
<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9103 >


Fix krb5_cccol_have_content() bad pointer free

krb5_cccol_have_content() calls krb5_cc_get_principal() within a loop,
and frees the resulting principal on success or failure.  Set princ to
null before each call to ensure we don't free a dangling pointer.

[[email protected]: rewrote commit message; moved assignment for greater
clarity]

https://github.com/krb5/krb5/commit/635c8cca65b745476d07c1f5ff701445db25c10d
Author: Ilya Gladyshev <[email protected]>
Committer: Greg Hudson <[email protected]>
Commit: 635c8cca65b745476d07c1f5ff701445db25c10d
Branch: master
 src/lib/krb5/ccache/cccursor.c | 1 +
 1 file changed, 1 insertion(+)