From d98d74772fefc1efcdf18d459e9e7a25ac9d5559 Mon Sep 17 00:00:00 2001 From: Yoshinobu Inoue Date: Wed, 9 Feb 2000 00:27:40 +0000 Subject: [PATCH] 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 --- usr.bin/ftp/ftp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c index 3c7da3feb2cf..e2c6a39ad456 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