summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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;