]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix memory leak in SPNEGO gss_init_sec_context()
authorGreg Hudson <ghudson@mit.edu>
Wed, 25 Nov 2015 19:43:35 +0000 (14:43 -0500)
committerGreg Hudson <ghudson@mit.edu>
Mon, 11 Jan 2016 16:38:57 +0000 (11:38 -0500)
commit159dbbd5ff14fdc2fa71fb3a8804eb401c914399
treec4cb2f61c98607be7012a2e3b6b44e151402e092
parent23a16fb5eac733880e34a770882ed17b93b5d66c
Fix memory leak in SPNEGO gss_init_sec_context()

After the initial call to spnego_gss_init_sec_context(), the context
handle can leak if init_ctx_cont() returns an error, because the
cleanup handler assumes that spnego_ctx contains the value of
*context_handle.  Fix this leak by setting spnego_ctx before the if
block which contains that call.  Reported by Adam Bernstein.

ticket: 8281 (new)
target_version: 1.14.1
tags: pullup
src/lib/gssapi/spnego/spnego_mech.c