Merge pull request #554 from mfleisz/master

libfreerdp-sspi: Fixed possible crash when canceling a connection by not providing credentials
This commit is contained in:
Marc-André Moreau 2012-04-20 16:32:08 -07:00
commit 5c73ced09e

View File

@ -1024,7 +1024,8 @@ void credssp_free(rdpCredssp* credssp)
{
if (credssp != NULL)
{
credssp->table->DeleteSecurityContext(&credssp->context);
if (credssp->table)
credssp->table->DeleteSecurityContext(&credssp->context);
sspi_SecBufferFree(&credssp->PublicKey);
sspi_SecBufferFree(&credssp->ts_credentials);
freerdp_uniconv_free(credssp->uniconv);