r23132: Resolve an issue where we would use the ccache after we free()ed it.
authorAndrew Bartlett <abartlet@samba.org>
Fri, 25 May 2007 05:19:02 +0000 (05:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:53 +0000 (14:52 -0500)
commitd285bd927c604d930fc44cc84ef3321aa4ce9d9a
tree0606eb1aa269661d49af61d3eae7c2646173b79e
parent9cdd6d9782a7a70f01d748228beb80c454d1468b
r23132: Resolve an issue where we would use the ccache after we free()ed it.

The problem was, we would set the ccache, then invalidate it as we set
details from it (like the principal name from the ccache).

Instead, set the ccache onto the credentials structure after we are
done processing it.

Andrew Bartlett
source/auth/auth_util.c
source/auth/credentials/credentials_krb5.c