code style

This commit is contained in:
John
2023-05-30 09:24:02 +02:00
parent 56aaba03ad
commit 4152ea6a84
+2 -1
View File
@@ -242,7 +242,8 @@ SSLSocket* SSLSocket::connect(const string& host, const uint16_t& port, bool htt
}
if (strcmp(peerName, hostname) != 0) {
char* dotpos = NULL;
if (peerName[0]=='*' && peerName[1]=='.' && (dotpos=strchr((char*)hostname, '.')) && strcmp(peerName+2, dotpos+1)==0) {
if (peerName[0] == '*' && peerName[1] == '.' && (dotpos=strchr((char*)hostname, '.'))
&& strcmp(peerName+2, dotpos+1) == 0) {
// wildcard matches
} else if (isError("subject", 1, 0)) {
break;