]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix KDC lookaside cache entry count tracking
authorSarah Day <sarahday@mit.edu>
Fri, 19 Aug 2016 17:47:22 +0000 (13:47 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 22 Sep 2016 16:35:50 +0000 (12:35 -0400)
commit23762eae1103d429493919fb0cbafb3a93307cc8
tree9a17bd9cf7999bd8d06f14ce85b4d3c67264ed7b
parent4f1afe0efdb0be43e04567b5636b646322965be8
Fix KDC lookaside cache entry count tracking

The KDC lookaside cache was incrementing num_entries when an entry was
added, but it did not decrement num_entries when an entry was removed.
Decrement num_entries in discard_entry().  Also fix some function
comments to correctly explain what the function is doing, and refactor
kdc_insert_lookaside by moving the code that inserts an entry into a
new static function called insert_entry().
src/kdc/replay.c