need to put something in last_req field (it's not optional)
authorJohn Kohl <jtkohl@mit.edu>
Thu, 14 Mar 1991 17:19:47 +0000 (17:19 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 14 Mar 1991 17:19:47 +0000 (17:19 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1918 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/do_tgs_req.c

index bb71df935fadba6b5a32d5d810724aea0668e7cc..7ebd3768b9c7ebede8e578814a21de7ae5c37a30 100644 (file)
@@ -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;