diff options
Diffstat (limited to 'src/kdc/kerberos_v4.c')
-rw-r--r-- | src/kdc/kerberos_v4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kdc/kerberos_v4.c b/src/kdc/kerberos_v4.c index e77ea31..db074d9 100644 --- a/src/kdc/kerberos_v4.c +++ b/src/kdc/kerberos_v4.c @@ -925,7 +925,8 @@ int check_princ(p_name, instance, lifetime, p) return KERB_ERR_NULL_KEY; } /* make sure the service hasn't expired */ - if ((u_long) p->exp_date < (u_long) kerb_time.tv_sec) { + if (((u_long) p->exp_date != 0)&& + ((u_long) p->exp_date <(u_long) kerb_time.tv_sec)) { /* service did expire, log it */ lt = klog(L_ERR_SEXP, "EXPIRED \"%s\" \"%s\" %s", p->name, p->instance, |