Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) From: tlyu@mit.edu Subject: git commit RT-Send-CC: X-RT-Original-Encoding: iso-8859-1 Content-Length: 760 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. (cherry picked from commit 159dbbd5ff14fdc2fa71fb3a8804eb401c914399) https://github.com/krb5/krb5/commit/7222177004597c0f749f98421fb626b7c50fa84a Author: Greg Hudson Committer: Tom Yu Commit: 7222177004597c0f749f98421fb626b7c50fa84a Branch: krb5-1.14 src/lib/gssapi/spnego/spnego_mech.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)