diff options
author | Greg Hudson <ghudson@mit.edu> | 2011-02-03 17:39:57 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2011-02-03 17:39:57 +0000 |
commit | 4b9f54b07b54d4229c24171cdeb65cd05628ac48 (patch) | |
tree | 5d5c0fd41660a786cb5231fa1a478b3293f66fd7 /src/lib/gssapi | |
parent | 3bb5bee81fa978212fb7913e42409d0c5b668c85 (diff) | |
download | krb5-4b9f54b07b54d4229c24171cdeb65cd05628ac48.zip krb5-4b9f54b07b54d4229c24171cdeb65cd05628ac48.tar.gz krb5-4b9f54b07b54d4229c24171cdeb65cd05628ac48.tar.bz2 |
Remove an unnecessary statement in acquire_init_cred(). We never set
an acceptor name different from desired_princ.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24612 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi')
-rw-r--r-- | src/lib/gssapi/krb5/acquire_cred.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/gssapi/krb5/acquire_cred.c b/src/lib/gssapi/krb5/acquire_cred.c index a328a3d..4fe9ebc 100644 --- a/src/lib/gssapi/krb5/acquire_cred.c +++ b/src/lib/gssapi/krb5/acquire_cred.c @@ -354,13 +354,6 @@ acquire_init_cred(krb5_context context, return GSS_S_CRED_UNAVAIL; } - /* - * Credentials cache principal must match either the acceptor principal - * name or the desired_princ argument (they may be the same). - */ - if (cred->name != NULL && desired_princ == NULL) - desired_princ = cred->name->princ; - code = krb5_cc_get_principal(context, ccache, &ccache_princ); if (code != 0) { krb5_cc_close(context, ccache); @@ -368,6 +361,7 @@ acquire_init_cred(krb5_context context, return GSS_S_FAILURE; } + /* Credentials cache principal must match the initiator name. */ if (desired_princ != NULL) { if (!krb5_principal_compare(context, ccache_princ, desired_princ)) { krb5_free_principal(context, ccache_princ); |