summaryrefslogtreecommitdiff
path: root/ftp/proftpd-devel/files/patch-ak
blob: 0d8bb08fee5b0d9c6d868b2db6fa6e4f855a9f53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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);
   }