diff options
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); } |