diff options
author | Robbie Harwood <rharwood@redhat.com> | 2019-08-09 14:07:22 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2019-12-09 17:02:30 -0500 |
commit | ca34c87f0bfaaea63eb0ffc3c81ae31fd962e220 (patch) | |
tree | 4d1f60f2f0f0f428d4d34a32da937e6deefe2e32 | |
parent | cdbcf39f2f4b880aaed3b53263fe0af9e753fff3 (diff) | |
download | krb5-ca34c87f0bfaaea63eb0ffc3c81ae31fd962e220.zip krb5-ca34c87f0bfaaea63eb0ffc3c81ae31fd962e220.tar.gz krb5-ca34c87f0bfaaea63eb0ffc3c81ae31fd962e220.tar.bz2 |
Initialize life/rlife in kdcpolicy interface
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 d81c5870013240c04642c8e0cb994b4c49e40ddf)
ticket: 8824
version_fixed: 1.16.4
-rw-r--r-- | src/kdc/policy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kdc/policy.c b/src/kdc/policy.c index 26c16f9..a3ff556 100644 --- a/src/kdc/policy.c +++ b/src/kdc/policy.c @@ -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; @@ -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; |