Fix leaks in get_init_creds interface
authorSam Hartman <hartmans@mit.edu>
Wed, 13 Oct 2010 01:19:14 +0000 (01:19 +0000)
committerSam Hartman <hartmans@mit.edu>
Wed, 13 Oct 2010 01:19:14 +0000 (01:19 +0000)
commit514fb79ce86b2472335492bf81ef78aeb5966e7d
tree9f706471057cc912e4117b491526b7e1e4b063cb
parente3f005a93c30d4efd7eb321d4be16c87f6a73fce
Fix leaks in get_init_creds interface

In Debian Bug 598032, Bastian Blank points out that there are two
leaks in the get_init_creds interface:

* Free ctx->request->padata after sending the KDC request so it is not
overwritten the next time around the loop.

* If options is NULL passed into krb5_get_init_creds_init, then set up
a non-extended options structure so that krb5_get_init_creds_free will
free the options.

ticket: 6801
target_version: 1.9

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24452 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/get_in_tkt.c