Fix a memory leak by reorganizing krb5_ktf_keytab_internalize to use
authorGreg Hudson <ghudson@mit.edu>
Thu, 30 Apr 2009 17:16:20 +0000 (17:16 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 30 Apr 2009 17:16:20 +0000 (17:16 +0000)
commit3794fb8ccd011e91fd8f214547780fdd58df39a4
tree9662cabfa7f782d8949f942bd7963bddaeaf3447
parente34fe90bed52f7845a1ba3924c436b5a00dc33a4
Fix a memory leak by reorganizing krb5_ktf_keytab_internalize to use
the recommended exception-handling flow control.  Eliminate the check
for ktdata being null after resolution because that's not possible.
Add a check for the resolved keytab being of a different type, since
that would result in data structure corruption.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22295 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/keytab/kt_file.c