summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1994-06-02 16:45:32 +0000
committerTheodore Tso <tytso@mit.edu>1994-06-02 16:45:32 +0000
commit95bed1c8a53fb1e11468c235ce75e8224fa22bb4 (patch)
treee6d78629d1e8c6008e677def12db8162763647bf /src/lib
parent2b76b925924cdfc9dc4494c4a5cafd15999ea6b6 (diff)
downloadkrb5-95bed1c8a53fb1e11468c235ce75e8224fa22bb4.tar.gz
krb5-95bed1c8a53fb1e11468c235ce75e8224fa22bb4.tar.xz
krb5-95bed1c8a53fb1e11468c235ce75e8224fa22bb4.zip
Switch around client and server so the routine is more understandable
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3675 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/krb/tgtname.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/krb5/krb/tgtname.c b/src/lib/krb5/krb/tgtname.c
index 5841cb1b7..acfa88657 100644
--- a/src/lib/krb5/krb/tgtname.c
+++ b/src/lib/krb5/krb/tgtname.c
@@ -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);
}