"from" field is optional
authorJohn Carr <jfc@mit.edu>
Tue, 25 Feb 1992 16:07:29 +0000 (16:07 +0000)
committerJohn Carr <jfc@mit.edu>
Tue, 25 Feb 1992 16:07:29 +0000 (16:07 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2250 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/tgrq2ktgrq.c

index ea20d5acf1631d5e0baecb3a58c25402838ec9a5..9ea7dee410ebd45da4444ad81c1617ca98cc9d11 100644 (file)
@@ -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;