Remove duplicate code block in spnego_gss_set_cred_option()
authorGreg Hudson <ghudson@mit.edu>
Fri, 8 Oct 2010 14:55:06 +0000 (14:55 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 8 Oct 2010 14:55:06 +0000 (14:55 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24443 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/spnego/spnego_mech.c

index d8706af92715b09bde74042d688e412ae9592f99..519050a14203bd7cd025622814c625903e257117 100644 (file)
@@ -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);
 }