From b335be615556b915f21592729366d77955e6cec6 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 5 Jun 1996 19:58:00 +0000 Subject: [PATCH] * asn1_k_decode.c (asn1_decode_enc_kdc_rep_part): If starttime is 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 | 5 +++++ src/lib/krb5/asn.1/asn1_k_decode.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index 5353263dd..0a14cb109 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -1,3 +1,8 @@ +Wed Jun 5 15:37:50 1996 Ezra Peisach + + * 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 * krb5_decode.c (decode_krb5_enc_tkt_part): use tagnum correctly diff --git a/src/lib/krb5/asn.1/asn1_k_decode.c b/src/lib/krb5/asn.1/asn1_k_decode.c index 1a2c7c30b..475bc0677 100644 --- a/src/lib/krb5/asn.1/asn1_k_decode.c +++ b/src/lib/krb5/asn.1/asn1_k_decode.c @@ -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); -- 2.26.2