summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-07-08 13:12:08 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-07-08 13:12:08 +0300
commite5ee9bdc7089073f7b3fe6bfdb1cec594e912ca8 (patch)
treee4b027bda188bd3b31782b98abb90519892227c6 /src/core
parent4296b61603f570ebec3cb3d70cab69b426dcebbf (diff)
StdSSL: fixes occasional crash under XP
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdssl/src/netlibssl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/stdssl/src/netlibssl.cpp b/src/core/stdssl/src/netlibssl.cpp
index 8e7b834646..5a61752fd6 100644
--- a/src/core/stdssl/src/netlibssl.cpp
+++ b/src/core/stdssl/src/netlibssl.cpp
@@ -754,6 +754,8 @@ int NetlibSslWrite(SslHandle *ssl, const char *buf, int num)
static void* NetlibSslUnique(SslHandle *ssl, int *cbLen)
{
*cbLen = 0;
+ if (!IsWinVer7Plus()) // XP doesn't support that functionality
+ return nullptr;
SEC_CHANNEL_BINDINGS bindings;
SECURITY_STATUS scRet = g_pSSPI->QueryContextAttributesW(&ssl->hContext, SECPKG_ATTR_UNIQUE_BINDINGS, &bindings);