Initialize request state in the TGS path
authorSam Hartman <hartmans@mit.edu>
Tue, 31 Mar 2009 22:35:59 +0000 (22:35 +0000)
committerSam Hartman <hartmans@mit.edu>
Tue, 31 Mar 2009 22:35:59 +0000 (22:35 +0000)
ticket: 6436

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22151 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/do_tgs_req.c

index 5af77304697b8ebc1815db9d18a7f1647c5f3ef6..e06d94dfca861657c0bb9afe9a3cf9f08e3fda6a 100644 (file)
@@ -164,6 +164,11 @@ process_tgs_req(krb5_data *pkt, const krb5_fulladdr *from,
         status="UNEXPECTED NULL in header_ticket";
         goto cleanup;
     }
+    errcode = kdc_make_rstate(&state);
+    if (errcode !=0) {
+       status = "making state";
+       goto cleanup;
+    }
     scratch.length = pa_tgs_req->length;
     scratch.data = (char *) pa_tgs_req->contents;
     errcode = kdc_find_fast(&request, &scratch, subkey, header_ticket->enc_part2->session, state);