Populate creds in get_new_tickets before actually using it.
Signed-off-by: Love Hörnquist Åstrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hörnquist Åstrand

parent
9323ca9341
commit
df73c96b74
@@ -595,6 +595,10 @@ get_new_tickets(krb5_context context,
|
|||||||
|
|
||||||
krb5_process_last_request(context, opt, ctx);
|
krb5_process_last_request(context, opt, ctx);
|
||||||
|
|
||||||
|
ret = krb5_init_creds_get_creds(context, ctx, &cred);
|
||||||
|
if (ret)
|
||||||
|
krb5_err(context, 1, ret, "krb5_init_creds_get_creds");
|
||||||
|
|
||||||
if(ticket_life != 0) {
|
if(ticket_life != 0) {
|
||||||
if(abs(cred.times.endtime - cred.times.starttime - ticket_life) > 30) {
|
if(abs(cred.times.endtime - cred.times.starttime - ticket_life) > 30) {
|
||||||
char life[64];
|
char life[64];
|
||||||
|
Reference in New Issue
Block a user