summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncftp/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ncftp/ftp.c')
-rw-r--r--usr.bin/ncftp/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ncftp/ftp.c b/usr.bin/ncftp/ftp.c
index 5152b55..4cb8d8d 100644
--- a/usr.bin/ncftp/ftp.c
+++ b/usr.bin/ncftp/ftp.c
@@ -1883,11 +1883,11 @@ dataconn(char *mode)
FILE *fp;
int s, fromlen = sizeof (from);
+ if (using_pasv)
+ return( fdopen( data, mode ));
#ifdef SOCKS
s = Raccept(data, (struct sockaddr *) &from, &fromlen);
#else
- if (using_pasv)
- return( fdopen( data, mode ));
s = Accept(data, &from, &fromlen);
#endif
if (s < 0) {
OpenPOWER on IntegriCloud