(check_tgs_flags): make sure kdc-req-body->rtime is not NULL; set
endtime to min of new starttime + old_life, and requested endtime git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4975 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -918,6 +918,7 @@ check_tgs_flags(KDC_REQ_BODY *b, EncTicketPart *tgt, EncTicketPart *et)
|
||||
}
|
||||
et->flags.renewable = 1;
|
||||
ALLOC(et->renew_till);
|
||||
fix_time(&b->rtime);
|
||||
*et->renew_till = *b->rtime;
|
||||
}
|
||||
if(f.renew){
|
||||
@@ -931,7 +932,7 @@ check_tgs_flags(KDC_REQ_BODY *b, EncTicketPart *tgt, EncTicketPart *et)
|
||||
old_life -= *tgt->starttime;
|
||||
else
|
||||
old_life -= tgt->authtime;
|
||||
et->endtime = *et->starttime + old_life;
|
||||
et->endtime = min(*b->till, *et->starttime + old_life);
|
||||
}
|
||||
|
||||
/* checks for excess flags */
|
||||
|
Reference in New Issue
Block a user