RFC 2743 says (regarding gss_acquire_cred),
``A caller may provide the value NULL (GSS_C_NO_NAME) for desired_name, which will be interpreted as a request for a credential handle that will invoke default behavior when passed to GSS_Init_sec_context(), if cred_usage is GSS_C_INITIATE or GSS_C_BOTH, or GSS_Accept_sec_context(), if cred_usage is GSS_C_ACCEPT or GSS_C_BOTH.'' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11155 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -46,7 +46,8 @@ OM_uint32 gss_release_cred | ||||
|  | ||||
|     gssapi_krb5_init (); | ||||
|  | ||||
|     krb5_free_principal(gssapi_krb5_context, (*cred_handle)->principal); | ||||
|     if ((*cred_handle)->principal != NULL) | ||||
|         krb5_free_principal(gssapi_krb5_context, (*cred_handle)->principal); | ||||
|     if ((*cred_handle)->keytab != NULL) | ||||
| 	krb5_kt_close(gssapi_krb5_context, (*cred_handle)->keytab); | ||||
|     if ((*cred_handle)->ccache != NULL) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jacques A. Vidrine
					Jacques A. Vidrine