Change boolean check to >0 rather than 1 #728

This commit is contained in:
Ian Craggs 2020-03-16 10:58:51 +00:00
parent ce13000252
commit 22746a4cf6
1 changed files with 1 additions and 1 deletions

View File

@ -749,7 +749,7 @@ int SSLSocket_connect(SSL* ssl, int sock, const char* hostname, int verify, int
rc = TCPSOCKET_INTERRUPTED;
}
#if (OPENSSL_VERSION_NUMBER >= 0x010002000) /* 1.0.2 and later */
else if (verify == 1)
else if (verify)
{
char* peername = NULL;
int port;