Don't use stack variable address in as_req state
authorGreg Hudson <ghudson@mit.edu>
Thu, 26 Jan 2012 17:01:05 +0000 (17:01 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 26 Jan 2012 17:01:05 +0000 (17:01 +0000)
commitd91163e40b15252e8189d0593e3125519b351c9c
tree6a2ff267ddd0c98e2dc6936a1c013ea0cc5456eb
parent9d693ea198116b4bc699891444588877bcd9a30c
Don't use stack variable address in as_req state

The KDC's process_as_req was storing the address of a stack variable
(client_princ), which fails if the request is not immediately
serviced.  Move that variable to the state structure so its address
remains valid for the lifetime of the request.

ticket: 7081
target_version: 1.10
tags: pullup

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