summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncftp/ftp.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-01-03 17:22:35 +0000
committerache <ache@FreeBSD.org>1995-01-03 17:22:35 +0000
commit3d3758835a59224b4505e5a81fdfd6ce1be9ff44 (patch)
treea6291612ed882a142d5646d18daf6935f9f51118 /usr.bin/ncftp/ftp.c
parent4510e641f3a53c4802bedb0db86d8e296b3e910c (diff)
downloadFreeBSD-src-3d3758835a59224b4505e5a81fdfd6ce1be9ff44.zip
FreeBSD-src-3d3758835a59224b4505e5a81fdfd6ce1be9ff44.tar.gz
Merge
Diffstat (limited to 'usr.bin/ncftp/ftp.c')
-rw-r--r--usr.bin/ncftp/ftp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/ncftp/ftp.c b/usr.bin/ncftp/ftp.c
index ecb2136..5152b55 100644
--- a/usr.bin/ncftp/ftp.c
+++ b/usr.bin/ncftp/ftp.c
@@ -1753,7 +1753,11 @@ int initconn(void)
bcopy( (void *)&n[0], (void *)&data_addr.sin_addr, 4 );
bcopy( (void *)&n[4], (void *)&data_addr.sin_port, 2 );
+#ifdef SOCKS
+ if (Rconnect( data, (struct sockaddr *) &data_addr, (int) sizeof(data_addr) ) < 0 ) {
+#else
if (Connect( data, &data_addr, sizeof(data_addr) ) < 0 ) {
+#endif
if (errno == ECONNREFUSED) {
dbprintf("Could not connect to port specified by server;\n");
dbprintf("Falling back to PORT mode.\n");
OpenPOWER on IntegriCloud