Checked in jfc's changes: krb5_principal reorganization
authorTheodore Tso <tytso@mit.edu>
Wed, 29 Jul 1992 15:36:07 +0000 (15:36 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 29 Jul 1992 15:36:07 +0000 (15:36 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2315 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/kinit/kinit.c

index 50455a5a6cbde486fa6934107271384ca1ab4a04..94de269bd0f0bba91373f44d823fdcbc7a5896d3 100644 (file)
@@ -158,9 +158,11 @@ main(argc, argv)
     my_creds.client = me;
 
     if (code = krb5_build_principal_ext(&server,
-                                       me[0]->length, me[0]->data,
+                                       krb5_princ_realm(me)->length,
+                                       krb5_princ_realm(me)->data,
                                        tgtname.length, tgtname.data,
-                                       me[0]->length, me[0]->data,
+                                       krb5_princ_realm(me)->length,
+                                       krb5_princ_realm(me)->data,
                                        0)) {
        com_err(argv[0], code, "while building server name");
        exit(1);