From 56f81e05fadd6fda61e75ddb9367cb25299f8a52 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 3 Jun 1993 00:27:21 +0000 Subject: [PATCH] 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 --- src/lib/krb5/asn.1/ktgrq2tgrq.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; -- 2.26.2