From: Paul Park Date: Mon, 7 Aug 1995 17:08:09 +0000 (+0000) Subject: Manually initialize krbtgt_princ.data X-Git-Tag: krb5-1.0-beta6~1391 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4869f5a1dfd97e648240ec32ed1ee7ab94256bec;p=krb5.git Manually initialize krbtgt_princ.data git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6433 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index ff19ad3b3..1014f5925 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,4 +1,10 @@ +Mon Aug 7 13:05:53 EDT 1995 Paul Park (pjpark@mit.edu) + * kdb_cpw.c(add_key_rnd) - Manually initialize krbtgt_princ.data to + point to krbtgt_princ_entries since some compilers do not + support dynamic initializers. + + Mon Aug 07 11:27:37 1995 Chris Provenzano (proven@mit.edu) * kdb_cpw.c: New routines for changing passwords of db_entried. diff --git a/src/lib/kdb/kdb_cpw.c b/src/lib/kdb/kdb_cpw.c index 8324976cc..f507cc6d1 100644 --- a/src/lib/kdb/kdb_cpw.c +++ b/src/lib/kdb/kdb_cpw.c @@ -82,7 +82,7 @@ add_key_rnd(context, master_eblock, ks_tuple, ks_tuple_count, db_entry, kvno) krb5_principal_data krbtgt_princ = { 0, /* magic number */ {0, 0, 0}, /* krb5_data realm */ - krbtgt_princ_entries, /* krb5_data *data */ + (krb5_data *) NULL, /* krb5_data *data */ 2, /* int length */ KRB5_NT_SRV_INST /* int type */ }; @@ -94,6 +94,7 @@ add_key_rnd(context, master_eblock, ks_tuple, ks_tuple_count, db_entry, kvno) int max_kvno, one, i, j; krb5_error_code retval; + krbtgt_princ.data = krbtgt_princ_entries; krb5_princ_set_realm_length(context, &krbtgt_princ, db_entry->princ->realm.length); krb5_princ_set_realm_data(context, &krbtgt_princ,