Fix various typo and macro guards issues

Signed-off-by: Xiaokang Qian <[email protected]>
This commit is contained in:
Xiaokang Qian
2022-10-12 11:06:51 +00:00
parent ed0620cb13
commit ed3afcd6c3
4 changed files with 9 additions and 7 deletions
+2
View File
@@ -880,8 +880,10 @@ static int ssl_prepare_client_hello( mbedtls_ssl_context *ssl )
int hostname_mismatch = ssl->hostname != NULL ||
ssl->session_negotiate->hostname != NULL;
if( ssl->hostname != NULL && ssl->session_negotiate->hostname != NULL )
{
hostname_mismatch = strcmp(
ssl->hostname, ssl->session_negotiate->hostname ) != 0;
}
if( hostname_mismatch )
{