krb5 commit [krb5-1.17]: Initialize life/rlife in kdcpolicy interface
Greg Hudson
ghudson at mit.edu
Mon Dec 9 18:23:40 EST 2019
https://github.com/krb5/krb5/commit/0d7f29a6cbd4ba2b485a1dc7a0dd01ebeb7458f5
commit 0d7f29a6cbd4ba2b485a1dc7a0dd01ebeb7458f5
Author: Robbie Harwood <rharwood at redhat.com>
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.
(cherry picked from commit d81c5870013240c04642c8e0cb994b4c49e40ddf)
ticket: 8824
version_fixed: 1.17.1
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;
More information about the cvs-krb5
mailing list