From 7e3d802968dd325fb8420f8400d624b22670cbf0 Mon Sep 17 00:00:00 2001 From: John Carr Date: Tue, 25 Feb 1992 16:07:29 +0000 Subject: [PATCH] "from" field is optional git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2250 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/tgrq2ktgrq.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/asn.1/tgrq2ktgrq.c b/src/lib/krb5/asn.1/tgrq2ktgrq.c index ea20d5acf..9ea7dee41 100644 --- a/src/lib/krb5/asn.1/tgrq2ktgrq.c +++ b/src/lib/krb5/asn.1/tgrq2ktgrq.c @@ -78,10 +78,13 @@ register int *error; if (!retval->server) { goto errout; } - retval->from = gentime2unix(val->from, error); - if (*error) { - goto errout; + if (val->from) { + retval->from = gentime2unix(val->from, error); + if (*error) { + goto errout; + } } + retval->till = gentime2unix(val->till, error); if (*error) { goto errout; -- 2.26.2