pull up r25419 from trunk
authorTom Yu <tlyu@mit.edu>
Mon, 7 Nov 2011 22:35:39 +0000 (22:35 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 7 Nov 2011 22:35:39 +0000 (22:35 +0000)
 ------------------------------------------------------------------------
 r25419 | ghudson | 2011-10-28 11:53:50 -0400 (Fri, 28 Oct 2011) | 11 lines

 ticket: 6995
 subject: Initialize typed_e_data in as_req_state
 target_version: 1.10
 tags: pullup

 The typed_e_data field in struct as_req_state was not properly
 initialized, causing the KDC to sometimes respond with typed-data
 e_data for a preauth-required error when the client sends no padata.
 This bug was masked with recent clients, which send a
 KRB5_ENCPADATA_REQ_ENC_PA_REP padata.

ticket: 6995
version_fixed: 1.10
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-10@25450 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/do_as_req.c

index 9031b03aae6ec57021bbb948d3410dd6a0f2a8fc..e09baf9edb20272974dfb81ed32757c835f70ac0 100644 (file)
@@ -479,6 +479,7 @@ process_as_req(krb5_kdc_req *request, krb5_data *req_pkt,
     state->server = NULL;
     state->request = request;
     state->e_data = NULL;
+    state->typed_e_data = FALSE;
     state->authtime = 0;
     state->c_flags = 0;
     state->req_pkt = req_pkt;