winpr: fix a crash when kerberos fails during negociation
This commit is contained in:
parent
968416ce95
commit
02535ea200
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user