libfreerdp-ssp: Fixed possible crash when canceling a connection by not providing credentials

This commit is contained in:
Martin Fleisz 2012-04-16 06:15:40 -07:00
parent 2c049c66ef
commit 92d024d2b1

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);