Prevent a NULL-pointer deref when making a TGS_REP for a ticket
renewal. Patch from Assar via private mail.
This commit is contained in:
parent
fa10675c86
commit
6158847f3d
6
crypto/dist/heimdal/kdc/kerberos5.c
vendored
6
crypto/dist/heimdal/kdc/kerberos5.c
vendored
@ -33,7 +33,7 @@
|
||||
|
||||
#include "kdc_locl.h"
|
||||
|
||||
RCSID("$Id: kerberos5.c,v 1.1.1.3 2001/02/11 13:51:31 assar Exp $");
|
||||
RCSID("$Id: kerberos5.c,v 1.2 2001/04/06 04:39:31 thorpej Exp $");
|
||||
|
||||
#define MAX_TIME ((time_t)((1U << 31) - 1))
|
||||
|
||||
@ -978,7 +978,9 @@ check_tgs_flags(KDC_REQ_BODY *b, EncTicketPart *tgt, EncTicketPart *et)
|
||||
old_life -= *tgt->starttime;
|
||||
else
|
||||
old_life -= tgt->authtime;
|
||||
et->endtime = min(*et->renew_till, *et->starttime + old_life);
|
||||
et->endtime = *et->starttime + old_life;
|
||||
if (et->renew_till != NULL)
|
||||
et->endtime = min(*et->renew_till, et->endtime);
|
||||
}
|
||||
|
||||
/* checks for excess flags */
|
||||
|
Loading…
Reference in New Issue
Block a user