1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

fix PASV bug introduced in rc2

Submitted by: Jeremy Chadwick <yoshi@parodius.com>
This commit is contained in:
Michael Haro 2000-07-31 23:53:11 +00:00
parent d0b2934087
commit c6cf6527bf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31183
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- 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);
}

View File

@ -0,0 +1,12 @@
--- 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);
}