* svr_principal.c (add_to_history): If the policy a principal uses has
authorMitchell Berger <mitchb@mit.edu>
Tue, 16 Oct 2001 10:12:31 +0000 (10:12 +0000)
committerMitchell Berger <mitchb@mit.edu>
Tue, 16 Oct 2001 10:12:31 +0000 (10:12 +0000)
commitb524f1a4817dadbf57d27b54621278a84afc830a
tree0d3bf4c7132d964f53b3c981437b1463dbad6f52
parent67c45851e4ac7eda5a797353495534f308d1a8c6
* svr_principal.c (add_to_history): If the policy a principal uses has
been changed to hold a lesser number of history entries than it did
before, extract the correct number and value of old keys from the
history array into a newly allocated array of the proper size.  Failing
to do this made kadmind vulnerable to a crash upon changing such a
principal's password.  Original patch written by Matt Crawford, with
a few changes.

[Fixes krb5-admin/929]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13813 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/kadm5/srv/ChangeLog
src/lib/kadm5/srv/svr_principal.c