From: John Kohl Date: Thu, 14 Mar 1991 17:19:47 +0000 (+0000) Subject: need to put something in last_req field (it's not optional) X-Git-Tag: krb5-1.0-alpha4~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a28ea47b090899c37cd4a6a81e6de3479cfaa995;p=krb5.git need to put something in last_req field (it's not optional) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1918 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c index bb71df935..7ebd3768b 100644 --- a/src/kdc/do_tgs_req.c +++ b/src/kdc/do_tgs_req.c @@ -69,8 +69,8 @@ krb5_data **response; /* filled in with a response packet */ krb5_timestamp until, rtime; krb5_keyblock encrypting_key; char *cname = 0, *sname = 0, *fromstring = 0; - krb5_last_req_entry *nolrarray[1]; - krb5_address *noaddrarray[1]; + krb5_last_req_entry *nolrarray[2], nolrentry; +/* krb5_address *noaddrarray[1]; */ krb5_enctype useetype; register int i; int firstpass = 1; @@ -195,8 +195,8 @@ tgt_again: /* don't use new addresses unless forwarded, see below */ enc_tkt_reply.caddrs = header_ticket->enc_part2->caddrs; - noaddrarray[0] = 0; - reply_encpart.caddrs = noaddrarray; + /* noaddrarray[0] = 0; */ + reply_encpart.caddrs = 0; /* optional...don't put it in */ /* It should be noted that local policy may affect the */ /* processing of any of these flags. For example, some */ @@ -509,7 +509,10 @@ tgt_again: reply_encpart.times.authtime = kdc_time; - nolrarray[0] = 0; + nolrentry.lr_type = 0; /* XXX 0 is unused? cf. kdc_util.c */ + nolrentry.value = 0; + nolrarray[0] = &nolrentry; + nolrarray[1] = 0; reply_encpart.last_req = nolrarray; /* not available for TGS reqs */ reply_encpart.key_exp = 0; /* ditto */ reply_encpart.flags = enc_tkt_reply.flags;