secur32: check for variable before freeing it
Austin English
austinenglish at gmail.com
Tue Oct 13 01:42:53 CDT 2009
Caused winetest64 to crash for me on Karmic. With this patch, runs
fine. See bug 20201.
--
-Austin
-------------- next part --------------
diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c
index f776206..dc003e9 100644
--- a/dlls/secur32/schannel.c
+++ b/dlls/secur32/schannel.c
@@ -1435,7 +1435,7 @@ void SECUR32_deinitSchannelSP(void)
{
struct schan_credentials *cred;
cred = schan_free_handle(i, SCHAN_HANDLE_CRED);
- pgnutls_certificate_free_credentials(cred->credentials);
+ if(cred) pgnutls_certificate_free_credentials(cred->credentials);
HeapFree(GetProcessHeap(), 0, cred);
}
}
More information about the wine-patches
mailing list