libfreerdp-ssp: Fixed possible crash when canceling a connection by not providing credentials
This commit is contained in:
parent
2c049c66ef
commit
92d024d2b1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user