krb5 commit: Initialize life/rlife in kdcpolicy interface
Greg Hudson <[email protected]>
| Newsgroups | gmane.comp.encryption.kerberos.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://github.com/krb5/krb5/commit/d81c5870013240c04642c8e0cb994b4c49e40ddf commit d81c5870013240c04642c8e0cb994b4c49e40ddf Author: Robbie Harwood <[email protected]> Date: Fri Aug 9 14:07:22 2019 -0400 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. ticket: 8824 (new) tags: pullup target_version: 1.17-next target_version: 1.16-next 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;