Skip to content

Commit

Permalink
libfreerdp-ssp: Fixed possible crash when canceling a connection by n…
Browse files Browse the repository at this point in the history
…ot providing credentials
  • Loading branch information
Martin Fleisz committed Apr 16, 2012
1 parent 2c049c6 commit 92d024d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libfreerdp-sspi/credssp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 92d024d

Please sign in to comment.