Skip to content

Commit

Permalink
StdSSL: fixes occasional crash under XP
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehazan committed Jul 8, 2020
1 parent 4296b61 commit e5ee9bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/stdssl/src/netlibssl.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit e5ee9bd

Please sign in to comment.