Make krb5_mkt_resolve error handling work
authorGreg Hudson <ghudson@mit.edu>
Mon, 13 Apr 2009 18:36:42 +0000 (18:36 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 13 Apr 2009 18:36:42 +0000 (18:36 +0000)
commitebc7a7f22a7484542ff10746ecb6f82569a5a688
treed5769ea9051b5eb1ea9f3ec9baf84adaf6c21b28
parent8ad80bb0aebfe8818d37147a2a1d5ebe7430793d
Make krb5_mkt_resolve error handling work

Very little is likely to go wrong inside krb5_mkt_resolve (it just
allocates memory and plays with mutexes), but if anything did, the
handling was almost always wrong.  Reorganize the function to handle
errors properly, using a helper create_list_node function to simplify
the task.

ticket: 6454

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