diff options
author | shin <shin@FreeBSD.org> | 2000-02-09 00:27:40 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-02-09 00:27:40 +0000 |
commit | 49c2b4c16d1c8ee55f0216d9dca570beb62a2907 (patch) | |
tree | c45166939e798f3efba64a9646db1e2868148238 /usr.bin | |
parent | f5630daedc3091daac3c6112b8866a41d9253bd0 (diff) | |
download | FreeBSD-src-49c2b4c16d1c8ee55f0216d9dca570beb62a2907.zip FreeBSD-src-49c2b4c16d1c8ee55f0216d9dca570beb62a2907.tar.gz |
Let ftp command use only PORT(no EPRT) for IPv4 destination.
Because if ftpd is invoked with -R option, and EPRT is used via firewal
or NAT which don't understand EPRT, then the data connection from ftpd
to ftp client will fail.
Reported By: ume@mahoroba.org
Approved by: jkh
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ftp/ftp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c index 3c7da3f..e2c6a39 100644 --- a/usr.bin/ftp/ftp.c +++ b/usr.bin/ftp/ftp.c @@ -1403,7 +1403,6 @@ noport: #define UC(b) (((int)b)&0xff) switch (daddr->su_family) { - case AF_INET: #ifdef INET6 case AF_INET6: #endif |