Fix vector initialization error in KDC preauth code
authorGreg Hudson <ghudson@mit.edu>
Sun, 24 May 2009 15:53:51 +0000 (15:53 +0000)
committerGreg Hudson <ghudson@mit.edu>
Sun, 24 May 2009 15:53:51 +0000 (15:53 +0000)
commit704e18e821c217c65f3c1ae2103d7d5e9b9e78f7
tree1b08bace2f1ef2b4cd2a9df426839b5c3a67e235
parent2c9b64dec8198a2914b75e678c6f664712d68bac
Fix vector initialization error in KDC preauth code

In the KDC, get_preauth_hint_list had two bugs initializing the
preauth array.  It was allocating 21 extra entries instead of two due
to a typo (harmless), and it was only zeroing up through one extra
entry (harmful).  Adjust the code to use calloc to avoid further
disagreements of this nature.

ticket: 6496
target_version: 1.7
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22369 dc483132-0cff-0310-8789-dd5450dbe970
src/kdc/kdc_preauth.c