From: John Carr Date: Tue, 9 Jun 1992 18:38:03 +0000 (+0000) Subject: krb5_princ_realm -> krb5_princ_set_realm X-Git-Tag: krb5-1.0-beta2~173 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5d36225eb4080ae40a47dde50ede8e126500ccaf;p=krb5.git krb5_princ_realm -> krb5_princ_set_realm git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2289 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/main.c b/src/kdc/main.c index 43be88668..7ee0684bc 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -309,9 +309,9 @@ krb5_keyblock *masterkeyblock; /* the master key name here is from the master_princ global, so we can safely share its substructure */ - tgs_server[0] = krb5_princ_realm(masterkeyname); + krb5_princ_set_realm(tgs_server, krb5_princ_realm(masterkeyname)); /* tgs_server[1] is init data */ - tgs_server[2] = krb5_princ_realm(masterkeyname); + *krb5_princ_component(tgs_server, 2) = *krb5_princ_realm(masterkeyname); /* tgs_server[3] is init data (0) */ nprincs = 1;