diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 5b7a488c9..56c46d700 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -1219,8 +1219,8 @@ reconnect: goto exit; } - if( ( ret = net_connect( &server_fd, opt.server_name, - opt.server_port ) ) != 0 ) + if( ( ret = net_connect( &server_fd, opt.server_addr, + opt.server_port ) ) != 0 ) { printf( " failed\n ! net_connect returned -0x%x\n\n", -ret ); goto exit;