]> granicus.if.org Git - curl/commitdiff
Rich Gray fixed the PORT command line with the missing \r!
authorDaniel Stenberg <daniel@haxx.se>
Tue, 20 Jun 2000 07:45:53 +0000 (07:45 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 20 Jun 2000 07:45:53 +0000 (07:45 +0000)
lib/ftp.c

index 13ea3b9a0deabce661af423b21afdfd5c30be80b..1379a938038d2c5556039938b5a2ee4d9a38f614 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -617,7 +617,7 @@ CURLcode _ftp(struct connectdata *conn)
       sscanf( inet_ntoa(in), "%hu.%hu.%hu.%hu",
               &ip[0], &ip[1], &ip[2], &ip[3]);
 #endif
-      sendf(data->firstsocket, data, "PORT %d,%d,%d,%d,%d,%d\n",
+      sendf(data->firstsocket, data, "PORT %d,%d,%d,%d,%d,%d\r\n",
             ip[0], ip[1], ip[2], ip[3],
             porttouse >> 8,
             porttouse & 255);