]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix KDC encrypting key memory leak on some errors
authorGreg Hudson <ghudson@mit.edu>
Tue, 27 Feb 2018 16:56:58 +0000 (11:56 -0500)
committerGreg Hudson <ghudson@mit.edu>
Tue, 1 May 2018 21:30:50 +0000 (17:30 -0400)
commitb294627169fba270dbd78cff5e1408a21051b266
tree5aaff0dbdca8c4f2684e8f4240bb00c2db43afa0
parent57c70d882371fee7a1fca172d4a64f8f898b5c92
Fix KDC encrypting key memory leak on some errors

Commit 0ba5ccd7bb3ea15e44a87f84ca6feed8890f657d separated the
allocation and destruction of encrypting_key, causing it to leak when
any of the intervening calls jump to the cleanup label.  Currently the
leak manifests on transited or authdata failures.  Move encrypting_key
destruction to the cleanup label so that it can't leak.  Reported by
anedvedicky@gmail.com.

(cherry picked from commit 1bcf2742d504a22b7354251bbc1e19c3dacd95f3)

ticket: 8645
version_fixed: 1.15.3
src/kdc/do_tgs_req.c