* asn1_k_decode.c (asn1_decode_enc_kdc_rep_part): If starttime is
authorEzra Peisach <epeisach@mit.edu>
Wed, 5 Jun 1996 19:58:00 +0000 (19:58 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 5 Jun 1996 19:58:00 +0000 (19:58 +0000)
not sent over the wire, set equal to authtime.

The kdc does not return the starttime if it matches the authtime. This
shows up readilly with kdc5_hammer....

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

src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/asn1_k_decode.c

index 5353263dd54c345fcb463f1771a7b95613dcad89..0a14cb1095b0aebb6b888ea9ad9f3912d83bebcd 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jun  5 15:37:50 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * asn1_k_decode.c (asn1_decode_enc_kdc_rep_part): If starttime is
+               not sent over the wire, set equal to authtime.
+
 Thu May  2 21:59:23 1996  Mark Eichin  <eichin@cygnus.com>
 
        * krb5_decode.c (decode_krb5_enc_tkt_part): use tagnum correctly
index 1a2c7c30b02c1ea9948e95f007c1868aced5281e..475bc0677a2d5ad0e844e7671d0f7ee669a49465 100644 (file)
@@ -338,7 +338,8 @@ asn1_error_code asn1_decode_enc_kdc_rep_part(buf, val)
     opt_field(val->key_exp,3,asn1_decode_kerberos_time,0);
     get_field(val->flags,4,asn1_decode_ticket_flags);
     get_field(val->times.authtime,5,asn1_decode_kerberos_time);
-    opt_field(val->times.starttime,6,asn1_decode_kerberos_time,0);
+    /* Set to authtime if missing */
+    opt_field(val->times.starttime,6,asn1_decode_kerberos_time,val->times.authtime);
     get_field(val->times.endtime,7,asn1_decode_kerberos_time);
     opt_field(val->times.renew_till,8,asn1_decode_kerberos_time,0);
     alloc_field(val->server,krb5_principal_data);