From b70a38c1c62b7d5d670269a0f7fb87f3185b30f8 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 3 Mar 2000 12:37:06 +0000 Subject: [PATCH] (dump_krb4): get expiration date from `valid_end' and not `pw_end' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7998 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kdc/hpropd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kdc/hpropd.c b/kdc/hpropd.c index c95d57f87..15d22751b 100644 --- a/kdc/hpropd.c +++ b/kdc/hpropd.c @@ -127,10 +127,10 @@ dump_krb4(krb5_context context, hdb_entry *ent, int fd) free(p); } - if (ent->pw_end == NULL) - strcat(buf, time2str(60*60*24*365*50)); /* passwd will never expire */ + if (ent->valid_end == NULL) + strcat(buf, time2str(60*60*24*365*50)); /* no expiration */ else - strcat(buf, time2str(*ent->pw_end)); + strcat(buf, time2str(*ent->valid_end)); strcat(buf, " "); if (ent->modified_by == NULL)