Free credentials on exit.
This commit is contained in:
parent
b0411d4faa
commit
11fa9f6753
@ -1853,6 +1853,8 @@ void nla_free(rdpNla* nla)
|
||||
if (nla->table)
|
||||
{
|
||||
SECURITY_STATUS status;
|
||||
status = nla->table->FreeCredentialsHandle(&nla->credentials);
|
||||
|
||||
status = nla->table->DeleteSecurityContext(&nla->context);
|
||||
|
||||
if (status != SEC_E_OK)
|
||||
|
@ -381,7 +381,7 @@ SECURITY_STATUS SEC_ENTRY negotiate_FreeCredentialsHandle(PCredHandle phCredenti
|
||||
return SEC_E_INVALID_HANDLE;
|
||||
|
||||
sspi_CredentialsFree(credentials);
|
||||
|
||||
sspi_SecureHandleInvalidate(phCredential);
|
||||
return SEC_E_OK;
|
||||
}
|
||||
|
||||
|
@ -304,6 +304,15 @@ void* sspi_SecureHandleGetLowerPointer(SecHandle* handle)
|
||||
return pointer;
|
||||
}
|
||||
|
||||
void sspi_SecureHandleInvalidate(SecHandle* handle)
|
||||
{
|
||||
if (!handle)
|
||||
return;
|
||||
|
||||
handle->dwLower = 0;
|
||||
handle->dwUpper = 0;
|
||||
}
|
||||
|
||||
void sspi_SecureHandleSetLowerPointer(SecHandle* handle, void* pointer)
|
||||
{
|
||||
if (!handle)
|
||||
|
Loading…
Reference in New Issue
Block a user