1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/ftp/proftpd/files/patch-ak
Michael Haro c6cf6527bf fix PASV bug introduced in rc2
Submitted by: Jeremy Chadwick <yoshi@parodius.com>
2000-07-31 23:53:11 +00:00

13 lines
418 B
Plaintext

--- modules/mod_xfer.c.orig Mon Jul 31 16:49:19 2000
+++ modules/mod_xfer.c Mon Jul 31 16:50:02 2000
@@ -268,7 +268,8 @@
/* No PORT command has been issued.
*/
- if(session.d != NULL || !(session.flags & SF_PORT)) {
+ if(!(session.flags & SF_PASSIVE) &&
+ (session.d != NULL || !(session.flags & SF_PORT))) {
add_response_err(R_503, "No PORT command issued first.");
return ERROR(cmd);
}