mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
fix PASV bug introduced in rc2
Submitted by: Jeremy Chadwick <yoshi@parodius.com>
This commit is contained in:
parent
d0b2934087
commit
c6cf6527bf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31183
12
ftp/proftpd-devel/files/patch-ak
Normal file
12
ftp/proftpd-devel/files/patch-ak
Normal 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);
|
||||
}
|
12
ftp/proftpd/files/patch-ak
Normal file
12
ftp/proftpd/files/patch-ak
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user