From 92d024d2b1b07715516741e7daad6d7afb8e970c Mon Sep 17 00:00:00 2001 From: Martin Fleisz Date: Mon, 16 Apr 2012 06:15:40 -0700 Subject: [PATCH] libfreerdp-ssp: Fixed possible crash when canceling a connection by not providing credentials --- libfreerdp-sspi/credssp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libfreerdp-sspi/credssp.c b/libfreerdp-sspi/credssp.c index 104a71a..8cf8b48 100644 --- a/libfreerdp-sspi/credssp.c +++ b/libfreerdp-sspi/credssp.c @@ -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); -- 2.7.4