kdc-req-body->till is optional.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2989 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -99,7 +99,10 @@ init_tgs_req (krb5_context context,
|
||||
if (ret)
|
||||
goto fail;
|
||||
|
||||
t->req_body.till = in_creds->times.endtime;
|
||||
if(in_creds->times.endtime){
|
||||
ALLOC(t->req_body.till, 1);
|
||||
*t->req_body.till = in_creds->times.endtime;
|
||||
}
|
||||
|
||||
t->req_body.nonce = nonce;
|
||||
if(second_ticket){
|
||||
|
@@ -368,7 +368,10 @@ init_as_req (krb5_context context,
|
||||
}
|
||||
*a->req_body.from = creds->times.starttime;
|
||||
}
|
||||
a->req_body.till = creds->times.endtime;
|
||||
if(creds->times.endtime){
|
||||
ALLOC(a->req_body.till, 1);
|
||||
*a->req_body.till = creds->times.endtime;
|
||||
}
|
||||
if(creds->times.renew_till){
|
||||
a->req_body.rtime = malloc(sizeof(*a->req_body.rtime));
|
||||
if (a->req_body.rtime == NULL) {
|
||||
|
Reference in New Issue
Block a user