If starttime is not set, then use authtime as a default. (This fixes
authorTheodore Tso <tytso@mit.edu>
Wed, 28 Feb 1996 00:26:25 +0000 (00:26 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 28 Feb 1996 00:26:25 +0000 (00:26 +0000)
the bug where if you try to immediately use a TGT to get a ticket, you
get a time skew error.)

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

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

index b6fc5319c8285454217e2d232f56436d3a575bb5..9aba1388c9b4b3acc71fbd9f02a7e7b056d00611 100644 (file)
@@ -1,3 +1,10 @@
+Tue Feb 27 19:23:55 1996  Theodore Y. Ts'o  <tytso@dcl>
+
+       * krb5_decode.c (decode_krb5_enc_tkt_part): If starttime is not
+               set, then use authtime as a default.  (This fixes the bug
+               where if you try to immediately use a TGT to get a ticket,
+               you get a time skew error.)
+
 Wed Feb  7 00:23:18 1996  Theodore Y. Ts'o  <tytso@dcl>
 
        * Makefile.in: Folded in danw's changes to allow
index 71d8c60aed04c57d41bb32ab63b311508528f38a..318a403a4d248e6b88930893ea2a2d538314a039 100644 (file)
@@ -258,6 +258,8 @@ krb5_error_code decode_krb5_enc_tkt_part(code, rep)
     get_field((*rep)->transited,4,asn1_decode_transited_encoding);
     get_field((*rep)->times.authtime,5,asn1_decode_kerberos_time);
     opt_field((*rep)->times.starttime,6,asn1_decode_kerberos_time);
+    if (tagnum != 6)
+           (*rep)->times.starttime=(*rep)->times.authtime;
     get_field((*rep)->times.endtime,7,asn1_decode_kerberos_time);
     opt_field((*rep)->times.renew_till,8,asn1_decode_kerberos_time);
     opt_field((*rep)->caddrs,9,asn1_decode_host_addresses);