1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-25 02:02:03 +03:00

Fix bug in ssl_client2 reconnect option

This commit is contained in:
Manuel Pégourié-Gonnard
2014-09-23 12:36:12 +02:00
committed by Paul Bakker
parent b46780edee
commit 484b8f9ed8

View File

@ -1330,7 +1330,7 @@ reconnect:
goto exit;
}
if( ( ret = net_connect( &server_fd, opt.server_name, opt.server_port,
if( ( ret = net_connect( &server_fd, opt.server_addr, opt.server_port,
opt.transport == SSL_TRANSPORT_STREAM ?
NET_PROTO_TCP : NET_PROTO_UDP ) ) != 0 )
{