summaryrefslogtreecommitdiff
path: root/networking/ftpgetput.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r--networking/ftpgetput.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index aafeaf6e9..6608e6830 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -67,7 +67,7 @@ static int xconnect_ftpdata(ftp_host_info_t *server, const char *buf)
67 port_num += xatoul_range(buf_ptr + 1, 0, 255) * 256; 67 port_num += xatoul_range(buf_ptr + 1, 0, 255) * 256;
68 68
69 server->s_in->sin_port = htons(port_num); 69 server->s_in->sin_port = htons(port_num);
70 return xconnect(server->s_in); 70 return xconnect_tcp_v4(server->s_in);
71} 71}
72 72
73static FILE *ftp_login(ftp_host_info_t *server) 73static FILE *ftp_login(ftp_host_info_t *server)
@@ -76,7 +76,7 @@ static FILE *ftp_login(ftp_host_info_t *server)
76 char buf[512]; 76 char buf[512];
77 77
78 /* Connect to the command socket */ 78 /* Connect to the command socket */
79 control_stream = fdopen(xconnect(server->s_in), "r+"); 79 control_stream = fdopen(xconnect_tcp_v4(server->s_in), "r+");
80 if (control_stream == NULL) { 80 if (control_stream == NULL) {
81 bb_perror_msg_and_die("cannot open control stream"); 81 bb_perror_msg_and_die("cannot open control stream");
82 } 82 }