]> git.ipfire.org Git - thirdparty/krb5.git/commit
Free verto context later in KDC cleanup
authorGreg Hudson <ghudson@mit.edu>
Fri, 3 Jun 2022 18:38:45 +0000 (14:38 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 4 Nov 2022 16:28:23 +0000 (12:28 -0400)
commit782e3cf8e909ff7ad62c3b49e18aaad3e9c65279
tree201935f2ca248ae654dbbfd715f90372c6d32d9a
parent1166f1404c47af54f3d5b2533bb001fdadf6aadc
Free verto context later in KDC cleanup

The KDC supplies the verto context to kdcpreauth modules via the loop
method (added in commit 83b4ecd20e50ad330cd761977d5dadefe30a785b).
This context should remain valid until kdcpreauth modules are
unloaded, as modules might refer to it during cleanup.  In particular,
the OTP module references the verto context when freeing the RADIUS
client object (commit e89abc2d4ea1fea1ec28d470f297514b828e4842), which
can cause a memory error during KDC shutdown without this change.

(cherry picked from commit 8dcace04945723cd6a3c8ea2c1ba467c22eb6584)

ticket: 9064
version_fixed: 1.20.1
src/kdc/main.c