* 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