summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1993-06-03 00:27:21 +0000
committerTheodore Tso <tytso@mit.edu>1993-06-03 00:27:21 +0000
commit56f81e05fadd6fda61e75ddb9367cb25299f8a52 (patch)
tree9a6575858683ac5dbd80b541fa5cad8f57a7eed1 /src
parent117fd0659c81ad90cec3330e539e2f1c964ff6a5 (diff)
downloadkrb5-56f81e05fadd6fda61e75ddb9367cb25299f8a52.tar.gz
krb5-56f81e05fadd6fda61e75ddb9367cb25299f8a52.tar.xz
krb5-56f81e05fadd6fda61e75ddb9367cb25299f8a52.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/asn.1/ktgrq2tgrq.c10
1 files 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;