[krbdev.mit.edu #9103] git commit

"Greg Hudson via RT" <[email protected]> Mon, 24 Jun 2024 19:50:54 -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]

(cherry picked from commit 635c8cca65b745476d07c1f5ff701445db25c10d)

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