[krbdev.mit.edu #6551] SVN Commit
Tom Yu via RT
rt-comment at krbdev.mit.edu
Mon Sep 28 21:39:09 EDT 2009
pull up r22636 from trunk
------------------------------------------------------------------------
r22636 | ghudson | 2009-08-27 09:40:50 -0400 (Thu, 27 Aug 2009) | 17 lines
ticket: 6551
subject: Memory leak in spnego accept_sec_context error path
tags: pullup
target_version: 1.7
If the underlying mechanism's accept_sec_context returns an error, the
spnego accept_sec_context was leaving allocated data in
*context_handle, which is incorrect for the first call according to
RFC 2744.
Fix this by mirroring some code from the spnego init_sec_context,
which always cleans up the half-constructed context in case of error.
This is allowed (though not encouraged) by RFC 2744 for second and
subsequent calls; since we were already doing it in init_sec_context,
it seems simpler to do that than keep track of whether this is a first
call or not.
http://src.mit.edu/fisheye/changelog/krb5/?cs=22813
Commit By: tlyu
Revision: 22813
Changed Files:
U branches/krb5-1-7/src/lib/gssapi/spnego/spnego_mech.c
More information about the krb5-bugs
mailing list