Skip to content

Commit

Permalink
Initialize life/rlife in kdcpolicy interface
Browse files Browse the repository at this point in the history
A value of 0 indicates that the plugin doesn't wish to modify lifetimes.
Make this the default, rather than requiring all plugins to set these
values themselves.

ticket: 8824 (new)
tags: pullup
target_version: 1.17-next
target_version: 1.16-next
  • Loading branch information
frozencemetery authored and greghudson committed Aug 9, 2019
1 parent 2bb7156 commit d81c587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kdc/policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ check_kdcpolicy_as(krb5_context context, const krb5_kdc_req *request,
krb5_data *const *auth_indicators, krb5_timestamp kdc_time,
krb5_ticket_times *times, const char **status)
{
krb5_deltat life, rlife;
krb5_deltat life = 0, rlife = 0;
krb5_error_code ret;
kdcpolicy_handle *hp, h;
char **ais = NULL;
Expand Down Expand Up @@ -146,7 +146,7 @@ check_kdcpolicy_tgs(krb5_context context, const krb5_kdc_req *request,
krb5_data *const *auth_indicators, krb5_timestamp kdc_time,
krb5_ticket_times *times, const char **status)
{
krb5_deltat life, rlife;
krb5_deltat life = 0, rlife = 0;
krb5_error_code ret;
kdcpolicy_handle *hp, h;
char **ais = NULL;
Expand Down

0 comments on commit d81c587

Please sign in to comment.