Fix some krb4 stuff.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2878 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-08-10 20:12:54 +00:00
parent 5b49d6cc83
commit 74a6dbe5b3

View File

@@ -131,6 +131,10 @@ conv_db(void *arg, Principal *p)
ALLOC(ent.max_life);
*ent.max_life = krb_life_to_time(0, p->max_life);
if(*ent.max_life == (1 << 31) - 1){
free(ent.max_life);
ent.max_life = NULL;
}
ALLOC(ent.pw_end);
*ent.pw_end = p->exp_date;
@@ -312,7 +316,7 @@ int main(int argc, char **argv)
#ifdef KRB4
if(v4_db)
e = kerb_db_iterate ((k_iter_proc_t)conv_db, NULL);
e = kerb_db_iterate ((k_iter_proc_t)conv_db, &pd);
else
#endif
ret = hdb_foreach(context, db, func, &pd);