cURL / Mailing Lists / curl-users / Single Mail


RE: FTP put PASS/PASV problems - 6.5.2 PORT bug

From: Rich Gray <>
Date: Mon, 19 Jun 2000 13:13:08 -0400

Found it! In 6.5.2 ftp.c :

      sendf(data->firstsocket, data, "PORT %d,%d,%d,%d,%d,%d\n",

should be

      sendf(data->firstsocket, data, "PORT %d,%d,%d,%d,%d,%d\r\n",
                                         RETURN NEEDED ------^

Seems that the local ftpd's were forgiving about the lack of a proper end of
line sequence, but my guess is the PIX firewall's ftp fixup logic was not
tolerant. Not surprisingly, none of the other fixes I tried (such as moving
TYPE I earlier) had any effect. I checked the rest of the ftp.c program and
there were no other occurrences of this typo in sendf() statements.



Richard B. Gray, Sr. Software Egr.| Tel: 513-746-8118 ext. 2405
Plus Technologies, a division of | 877-899-PLUS (7587)
Digital Controls Corporation | Fax: 513-743-8575
305 South Pioneer Blvd. |
Springboro OH 45066-1100, USA |
Received on 2000-06-19