+Thu May 2 21:59:23 1996 Mark Eichin <eichin@cygnus.com>
+
+ * krb5_decode.c (decode_krb5_enc_tkt_part): use tagnum correctly
+ to handle optional starttime (previous code *always* replaced
+ starttime with authtime.)
+
Tue Apr 9 22:51:36 1996 Mark Eichin <eichin@cygnus.com>
* krb5_decode.c (decode_krb5_sam_challenge,
get_field((*rep)->client,3,asn1_decode_principal_name);
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;
+ if (tagnum == 6)
+ { get_field((*rep)->times.starttime,6,asn1_decode_kerberos_time); }
+ else
+ (*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);