Commit 235c6c1e authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

winhttp: Use the correct address length when connecting.

parent a4a3953b
......@@ -920,7 +920,7 @@ static BOOL open_connection( request_t *request )
heap_free( addressW );
return FALSE;
}
if (!netconn_connect( &request->netconn, (struct sockaddr *)&connect->sockaddr, sizeof(struct sockaddr_in) ))
if (!netconn_connect( &request->netconn, (struct sockaddr *)&connect->sockaddr, slen ))
{
netconn_close( &request->netconn );
heap_free( addressW );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment