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.

(cherry picked from commit d81c587)

ticket: 8824
version_fixed: 1.17.1
  • Loading branch information
frozencemetery authored and greghudson committed Dec 9, 2019
1 parent 1298217 commit 0d7f29a
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 0d7f29a

Please sign in to comment.