winpr: fix a crash when kerberos fails during negociation

This commit is contained in:
David Fort 2022-01-19 13:43:33 +01:00 committed by akallabeth
parent 968416ce95
commit 02535ea200

View File

@ -202,6 +202,7 @@ static SECURITY_STATUS SEC_ENTRY negotiate_InitializeSecurityContextA(
ErrorInitContextKerberos = TRUE;
context->sspiA->DeleteSecurityContext(&(context->SubContext));
negotiate_ContextFree(context);
sspi_SecureHandleSetLowerPointer(phNewContext, NULL);
return status;
}
}