ftpgetput: preparations for ESPV support, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -174,7 +174,7 @@ For example, vsftp happily answers
|
|||||||
|
|
||||||
TODO2: need to stop ignoring IP address in PASV response.
|
TODO2: need to stop ignoring IP address in PASV response.
|
||||||
*/
|
*/
|
||||||
|
//if (ftpcmd("EPSV", NULL) != 229) {
|
||||||
if (ftpcmd("PASV", NULL) != 227) {
|
if (ftpcmd("PASV", NULL) != 227) {
|
||||||
ftp_die("PASV");
|
ftp_die("PASV");
|
||||||
}
|
}
|
||||||
@@ -192,6 +192,7 @@ TODO2: need to stop ignoring IP address in PASV response.
|
|||||||
buf_ptr = strrchr(buf, ',');
|
buf_ptr = strrchr(buf, ',');
|
||||||
*buf_ptr = '\0';
|
*buf_ptr = '\0';
|
||||||
port_num += xatoul_range(buf_ptr + 1, 0, 255) * 256;
|
port_num += xatoul_range(buf_ptr + 1, 0, 255) * 256;
|
||||||
|
//}
|
||||||
|
|
||||||
set_nport(&lsa->u.sa, htons(port_num));
|
set_nport(&lsa->u.sa, htons(port_num));
|
||||||
return xconnect_stream(lsa);
|
return xconnect_stream(lsa);
|
||||||
|
Reference in New Issue
Block a user