From: Theodore Tso Date: Thu, 3 Jun 1993 00:27:21 +0000 (+0000) Subject: Changed to only encode the from time if it is non-zero in the structure X-Git-Tag: krb5-1.0-beta3~269 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=56f81e05fadd6fda61e75ddb9367cb25299f8a52;p=krb5.git Changed to only encode the from time if it is non-zero in the structure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2569 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/ktgrq2tgrq.c b/src/lib/krb5/asn.1/ktgrq2tgrq.c index bc7c9eeb9..df54f1932 100644 --- a/src/lib/krb5/asn.1/ktgrq2tgrq.c +++ b/src/lib/krb5/asn.1/ktgrq2tgrq.c @@ -80,15 +80,17 @@ register int *error; if (!retval->sname) { goto errout; } - retval->from = unix2gentime(val->from, error); - if (!retval->from) { - goto errout; + if (val->from) { + retval->from = unix2gentime(val->from, error); + if (!retval->from) { + goto errout; + } } retval->till = unix2gentime(val->till, error); if (!retval->till) { goto errout; } - if (val->kdc_options & KDC_OPT_RENEWABLE) { + if (val->rtime) { retval->rtime = unix2gentime(val->rtime, error); if (!retval->rtime) { goto errout;