]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Set msg_type when decoding FAST requests
authorGreg Hudson <ghudson@mit.edu>
Fri, 12 Apr 2013 20:28:14 +0000 (16:28 -0400)
committerTom Yu <tlyu@mit.edu>
Wed, 5 Jun 2013 20:21:08 +0000 (16:21 -0400)
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: 7660 (new)
version_fixed: 1.10.6
status: resolved

src/kdc/fast_util.c

index f3e037d5351d79b2cd33f18d9b28a06a9473cd9f..ffe78ccb4c0222b5143e8466d9b0fe7446f1a425 100644 (file)
@@ -234,6 +234,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;