KDC memory leak in FAST error path
authorGreg Hudson <ghudson@mit.edu>
Thu, 17 Mar 2011 20:02:01 +0000 (20:02 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 17 Mar 2011 20:02:01 +0000 (20:02 +0000)
commitb5d9f6e92ac9291c6f352a2d86b4b0bf9f74fc1f
treec1357d249460ecde2e14ced4eda883ff4bf0af3e
parente1ce2955dbaf8fbbc52a9625a62bb3fc4e31215f
KDC memory leak in FAST error path

When kdc_fast_handle_error() produces a FAST-encoded error, it puts it
into err->e_data and it never gets freed (since in the non-FAST case,
err->e_data contains aliased pointers).  Fix this by storing the
encoded error in an output variable which is placed into the error's
e_data by the caller and then freed.

ticket: 6884
target_version: 1.9.1
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24722 dc483132-0cff-0310-8789-dd5450dbe970
src/kdc/do_as_req.c
src/kdc/do_tgs_req.c
src/kdc/fast_util.c
src/kdc/kdc_util.h