summaryrefslogtreecommitdiffstats
path: root/proxy/examples
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-02-26 15:49:59 -0500
committerSimo Sorce <simo@redhat.com>2015-03-21 14:31:04 -0400
commit5d5d6cb98a42a09d02b8427bfc70ba1e9505eb50 (patch)
tree3a4a1c25a6c9c6e89b468a336e24a6cbf86122f3 /proxy/examples
parent7c6892cd059cba881e8d24e486fdc214fc5a87aa (diff)
downloadgss-proxy-5d5d6cb98a42a09d02b8427bfc70ba1e9505eb50.tar.gz
gss-proxy-5d5d6cb98a42a09d02b8427bfc70ba1e9505eb50.tar.xz
gss-proxy-5d5d6cb98a42a09d02b8427bfc70ba1e9505eb50.zip
Properly handle security contexts on error
On error we need to make sure we do not return a pointer to a security context that may have been already freed. So make sure to always unconditionally return the context that we've been returned by our callees. Also reorganize the code so we do not accidently wipe the context and leak memoy on error. This fixed a double-free bug found by NFS folks @ Red Hat Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy/examples')
0 files changed, 0 insertions, 0 deletions