From a54cf72312bc7ce031ba98667bf9916cb889ea8b Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 18 Aug 1997 16:41:13 +0000 Subject: [PATCH] * do_tgs_req.c (process_tgs_req): Initialize authtime to 0 so it is set before potentially used in case the packet has an error. * kdc_preauth.c (get_sam_edata): Remove unused variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10183 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 8 +++++++- src/kdc/do_tgs_req.c | 2 +- src/kdc/kdc_preauth.c | 3 --- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index ccf06b798..a01686d5d 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,4 +1,10 @@ -Mon Aug 18 12:29:08 1997 Ezra Peisach + +Mon Aug 18 12:29:08 1997 Ezra Peisach + + * do_tgs_req.c (process_tgs_req): Initialize authtime to 0 so it + is set before potentially used in case the packet has an error. + + * kdc_preauth.c (get_sam_edata): Remove unused variables. * kdc_util.h: Added prototype for setup_server_realm(). diff --git a/src/kdc/do_tgs_req.c b/src/kdc/do_tgs_req.c index a4c550242..7a83a9b32 100644 --- a/src/kdc/do_tgs_req.c +++ b/src/kdc/do_tgs_req.c @@ -75,7 +75,7 @@ krb5_data **response; /* filled in with a response packet */ krb5_error_code retval = 0; int nprincs = 0; krb5_boolean more; - krb5_timestamp kdc_time, authtime; + krb5_timestamp kdc_time, authtime=0; krb5_keyblock *session_key = 0; krb5_timestamp until, rtime; krb5_keyblock encrypting_key; diff --git a/src/kdc/kdc_preauth.c b/src/kdc/kdc_preauth.c index 390e43e05..2651756a6 100644 --- a/src/kdc/kdc_preauth.c +++ b/src/kdc/kdc_preauth.c @@ -611,7 +611,6 @@ get_sam_edata(context, request, client, server, pa_data) krb5_predicted_sam_response psr; krb5_data * scratch; int i = 0; - int start = 0; krb5_encrypt_block eblock; krb5_keyblock encrypting_key; char response[9]; @@ -632,13 +631,11 @@ get_sam_edata(context, request, client, server, pa_data) */ { - char *uname; int npr = 1; krb5_boolean more; krb5_db_entry assoc; krb5_key_data *assoc_key; krb5_principal newp; - int newlen; int probeslot; sc.sam_type = 0; -- 2.26.2