Don't leak the per-request preauth context
authorNalin Dahyabhai <nalin@dahyabhai.net>
Tue, 11 Mar 2014 17:33:23 +0000 (13:33 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 13 Mar 2014 19:39:56 +0000 (15:39 -0400)
commita47c4e68308331a630480cb62c2b7711432e0123
treefbd713697c58d30768da22573667a5167cba7fe3
parent8cdc21ef051f43ea8dcabf42540d5cff13b5adeb
Don't leak the per-request preauth context

Currently, per-request preauth module data is only cleared when we
successfully obtain initial credentials.  Make sure to clear it at the
end of the operation even if we failed to get creds.

[ghudson@mit.edu: expanded commit message]

ticket: 7793
target_version: 1.12.2
tags: pullup
src/lib/krb5/krb/get_in_tkt.c