[27717] in CVS-changelog-for-Kerberos-V5
krb5 commit [krb5-1.11]: Set msg_type when decoding FAST requests
daemon@ATHENA.MIT.EDU (Tom Yu)
Thu Apr 25 14:23:10 2013
Date: Thu, 25 Apr 2013 14:22:57 -0400
From: Tom Yu <tlyu@mit.edu>
Message-Id: <201304251822.r3PIMveY006531@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu
https://github.com/krb5/krb5/commit/8a7729d8b425fa9a58483861dd8701f0db6a4a10
commit 8a7729d8b425fa9a58483861dd8701f0db6a4a10
Author: Greg Hudson <ghudson@mit.edu>
Date: Fri Apr 12 16:28:14 2013 -0400
Set msg_type when decoding FAST requests
An RFC 6113 KrbFastReq contains a padata sequence and a KDC-REQ-BODY,
neither of which contain the msg-type field found in a KDC-REQ. So
when we decode the FAST request, the resulting krb5_kdc_req structure
has a msg_type of 0. Copy msg_type from the outer body, since we make
use of it in further KDC processing.
(cherry picked from commit 3a447c5a8c95758501cf5a20c161a2d735a02f6d)
ticket: 7605
version_fixed: 1.11.3
status: resolved
src/kdc/fast_util.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/kdc/fast_util.c b/src/kdc/fast_util.c
index 1ce27d6..af994d7 100644
--- a/src/kdc/fast_util.c
+++ b/src/kdc/fast_util.c
@@ -239,6 +239,7 @@ kdc_find_fast(krb5_kdc_req **requestptr,
KRB5_PADATA_FX_COOKIE);
if (retval == 0) {
state->fast_options = fast_req->fast_options;
+ fast_req->req_body->msg_type = request->msg_type;
krb5_free_kdc_req( kdc_context, request);
*requestptr = fast_req->req_body;
fast_req->req_body = NULL;
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5