Avoid free-ing type1 message before its allocated.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22519 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -114,7 +114,6 @@ _gss_ntlm_accept_sec_context
|
|||||||
/* check if the mechs is allowed by remote service */
|
/* check if the mechs is allowed by remote service */
|
||||||
major_status = (*ctx->server->nsi_probe)(minor_status, ctx->ictx, NULL);
|
major_status = (*ctx->server->nsi_probe)(minor_status, ctx->ictx, NULL);
|
||||||
if (major_status) {
|
if (major_status) {
|
||||||
heim_ntlm_free_type1(&type1);
|
|
||||||
_gss_ntlm_delete_sec_context(minor_status, context_handle, NULL);
|
_gss_ntlm_delete_sec_context(minor_status, context_handle, NULL);
|
||||||
return major_status;
|
return major_status;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user