free name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24142 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -76,6 +76,7 @@ _gss_ntlm_accept_sec_context
|
|||||||
{
|
{
|
||||||
krb5_error_code ret;
|
krb5_error_code ret;
|
||||||
struct ntlm_buf data;
|
struct ntlm_buf data;
|
||||||
|
OM_uint32 junk;
|
||||||
ntlm_ctx ctx;
|
ntlm_ctx ctx;
|
||||||
|
|
||||||
output_token->value = NULL;
|
output_token->value = NULL;
|
||||||
@@ -201,6 +202,8 @@ _gss_ntlm_accept_sec_context
|
|||||||
n->domain = strdup(type3.targetname);
|
n->domain = strdup(type3.targetname);
|
||||||
}
|
}
|
||||||
if (n == NULL || n->user == NULL || n->domain == NULL) {
|
if (n == NULL || n->user == NULL || n->domain == NULL) {
|
||||||
|
gss_name_t tempn = (gss_name_t)n;
|
||||||
|
_gss_ntlm_release_name(&junk, &tempn);
|
||||||
heim_ntlm_free_type3(&type3);
|
heim_ntlm_free_type3(&type3);
|
||||||
_gss_ntlm_delete_sec_context(minor_status,
|
_gss_ntlm_delete_sec_context(minor_status,
|
||||||
context_handle, NULL);
|
context_handle, NULL);
|
||||||
@@ -214,6 +217,8 @@ _gss_ntlm_accept_sec_context
|
|||||||
ret = krb5_data_copy(&ctx->sessionkey,
|
ret = krb5_data_copy(&ctx->sessionkey,
|
||||||
session.data, session.length);
|
session.data, session.length);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
if (src_name)
|
||||||
|
_gss_ntlm_release_name(&junk, src_name);
|
||||||
_gss_ntlm_delete_sec_context(minor_status, context_handle, NULL);
|
_gss_ntlm_delete_sec_context(minor_status, context_handle, NULL);
|
||||||
*minor_status = ret;
|
*minor_status = ret;
|
||||||
return GSS_S_FAILURE;
|
return GSS_S_FAILURE;
|
||||||
|
Reference in New Issue
Block a user