winhttp: Verify certificates against the hostname instead of the server name.

The server name is different when connections are made through a proxy server.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
This commit is contained in:
Hans Leidekker 2015-09-22 15:57:12 +02:00 committed by Alexandre Julliard
parent 7a485dd1ea
commit d22e21f96d
1 changed files with 1 additions and 1 deletions

View File

@ -1051,7 +1051,7 @@ static BOOL open_connection( request_t *request )
return FALSE; return FALSE;
} }
} }
if (!netconn_secure_connect( &request->netconn, connect->servername )) if (!netconn_secure_connect( &request->netconn, connect->hostname ))
{ {
netconn_close( &request->netconn ); netconn_close( &request->netconn );
heap_free( addressW ); heap_free( addressW );