[11128] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

[krbdev.mit.edu #6551] SVN Commit

daemon@ATHENA.MIT.EDU (Greg Hudson via RT)
Thu Aug 27 09:41:13 2009

Mail-Followup-To: rt@krbdev.mit.edu
mail-copies-to: never
From: "Greg Hudson via RT" <rt-comment@krbdev.MIT.EDU>
In-Reply-To: <rt-6551@krbdev.mit.edu>
Message-ID: <rt-6551-31639.8.68965959718729@krbdev.mit.edu>
To: "'AdminCc of krbdev.mit.edu Ticket #6551'":;"'AdminCc of krbdev.mit.edu Ticket #6551'":;@MIT.EDU
Date: Thu, 27 Aug 2009 13:40:52 +0000 (UTC)
Reply-To: rt-comment@krbdev.MIT.EDU
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krb5-bugs-bounces@mit.edu


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=22636
Commit By: ghudson
Revision: 22636
Changed Files:
U   trunk/src/lib/gssapi/spnego/spnego_mech.c

_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs

home help back first fref pref prev next nref lref last post