(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
This commit is contained in:
Assar Westerlund
2000-03-03 12:37:06 +00:00
parent d17102d6a7
commit b70a38c1c6

View File

@@ -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)