Switch around client and server so the routine is more understandable
authorTheodore Tso <tytso@mit.edu>
Thu, 2 Jun 1994 16:45:32 +0000 (16:45 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 2 Jun 1994 16:45:32 +0000 (16:45 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3675 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/tgtname.c

index 5841cb1b7b0b2ee3721cd0982526074a347a9e56..acfa886572ee3e15a27eb4cb5b55722481529afe 100644 (file)
@@ -36,12 +36,12 @@ static char rcsid_tgtname_c [] =
 /* This is an internal-only function, used by krb5_get_cred_from_kdc() */
 
 krb5_error_code
-krb5_tgtname(client, server, tgtprinc)
-const krb5_data *client, *server;
+krb5_tgtname(server, client, tgtprinc)
+const krb5_data *server, *client;
 krb5_principal *tgtprinc;
 {
-    return krb5_build_principal_ext(tgtprinc, server->length, server->data,
+    return krb5_build_principal_ext(tgtprinc, client->length, client->data,
                                    KRB5_TGS_NAME_SIZE, KRB5_TGS_NAME, 
-                                   client->length, client->data,
+                                   server->length, server->data,
                                    0);
 }