svn rev #24443: trunk/src/lib/gssapi/spnego/
ghudson@MIT.EDU
ghudson at MIT.EDU
Fri Oct 8 10:55:06 EDT 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=24443
Commit By: ghudson
Log Message:
Remove duplicate code block in spnego_gss_set_cred_option().
Changed Files:
U trunk/src/lib/gssapi/spnego/spnego_mech.c
Modified: trunk/src/lib/gssapi/spnego/spnego_mech.c
===================================================================
--- trunk/src/lib/gssapi/spnego/spnego_mech.c 2010-10-08 03:57:28 UTC (rev 24442)
+++ trunk/src/lib/gssapi/spnego/spnego_mech.c 2010-10-08 14:55:06 UTC (rev 24443)
@@ -2281,23 +2281,6 @@
*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);
}
More information about the cvs-krb5
mailing list