diff options
author | Greg Hudson <ghudson@mit.edu> | 2010-10-08 14:55:06 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2010-10-08 14:55:06 +0000 |
commit | 6b5bab3bea44e960cada8e161702118a886767af (patch) | |
tree | 07e7956d4583c4b1c6e1930613f48d874bda79ca /src | |
parent | 1cc59c12550c828d487c622990d83481e8bbb6c5 (diff) | |
download | krb5-6b5bab3bea44e960cada8e161702118a886767af.tar.gz krb5-6b5bab3bea44e960cada8e161702118a886767af.tar.xz krb5-6b5bab3bea44e960cada8e161702118a886767af.zip |
Remove duplicate code block in spnego_gss_set_cred_option()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24443 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/gssapi/spnego/spnego_mech.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/lib/gssapi/spnego/spnego_mech.c b/src/lib/gssapi/spnego/spnego_mech.c index d8706af92..519050a14 100644 --- a/src/lib/gssapi/spnego/spnego_mech.c +++ b/src/lib/gssapi/spnego/spnego_mech.c @@ -2281,23 +2281,6 @@ spnego_gss_set_cred_option( *cred_handle = (gss_cred_id_t)spcred; } - if (ret == GSS_S_COMPLETE && spcred == NULL) { - /* - * If the mechanism allocated a new credential handle, then - * we need to wrap it up in an SPNEGO credential handle. - */ - - spcred = malloc(sizeof(spnego_gss_cred_id_rec)); - if (spcred == NULL) { - gss_release_cred(&tmp_minor_status, &mcred); - *minor_status = ENOMEM; - return (GSS_S_FAILURE); - } - spcred->mcred = mcred; - spcred->neg_mechs = GSS_C_NULL_OID_SET; - *cred_handle = (gss_cred_id_t)spcred; - } - return (ret); } |