From 6b5bab3bea44e960cada8e161702118a886767af Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 8 Oct 2010 14:55:06 +0000 Subject: [PATCH] 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 --- src/lib/gssapi/spnego/spnego_mech.c | 17 ----------------- 1 file changed, 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); } -- 2.26.2