Catch errors and return the up the stack.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20698 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -182,12 +182,15 @@ _gss_ntlm_accept_sec_context
|
|||||||
&type3,
|
&type3,
|
||||||
&session);
|
&session);
|
||||||
heim_ntlm_free_type3(&type3);
|
heim_ntlm_free_type3(&type3);
|
||||||
|
if (maj_stat) {
|
||||||
|
_gss_ntlm_delete_sec_context(minor_status, context_handle, NULL);
|
||||||
|
return maj_stat;
|
||||||
|
}
|
||||||
|
|
||||||
ret = krb5_data_copy(&ctx->sessionkey,
|
ret = krb5_data_copy(&ctx->sessionkey,
|
||||||
session.data, session.length);
|
session.data, session.length);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
_gss_ntlm_delete_sec_context(minor_status,
|
_gss_ntlm_delete_sec_context(minor_status, context_handle, NULL);
|
||||||
context_handle, NULL);
|
|
||||||
*minor_status = ret;
|
*minor_status = ret;
|
||||||
return GSS_S_FAILURE;
|
return GSS_S_FAILURE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user