Changed to only encode the from time if it is non-zero in the structure
authorTheodore Tso <tytso@mit.edu>
Thu, 3 Jun 1993 00:27:21 +0000 (00:27 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 3 Jun 1993 00:27:21 +0000 (00:27 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2569 dc483132-0cff-0310-8789-dd5450dbe970

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

index bc7c9eeb93827e7439b5557c8bd712edda0beaff..df54f19320405f4c4cf6ff0d6e06a094284ea77d 100644 (file)
@@ -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;