src/ftp-basic.c: Accept 5-digit port numbers in EPSV responses

Reported-by: Adam Sampson <ats@offog.org>
This commit is contained in:
Tim Ruehsen 2015-01-04 20:50:11 +01:00
parent 01d5177f7a
commit 5e3a760731
1 changed files with 0 additions and 6 deletions

View File

@ -788,12 +788,6 @@ ftp_epsv (int csock, ip_address *ip, int *port)
for (tport = 0, i = 0; i < 5 && c_isdigit (*s); i++, s++)
tport = (*s - '0') + 10 * tport;
if (i >= 5)
{
xfree (respline);
return FTPINVPASV;
}
/* Make sure that the response terminates correcty */
if (*s++ != delim)
{