1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

ftp.c: add a couple of failure messages

This commit is contained in:
Yang Tse 2011-09-14 10:36:29 +02:00
parent aff70e2e95
commit 0216e517d0

View File

@ -1001,6 +1001,8 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
sa->sa_family == AF_INET?1:2, sa->sa_family == AF_INET?1:2,
myhost, port); myhost, port);
if(result) { if(result) {
failf(data, "Failure sending EPRT command: %s",
curl_easy_strerror(result));
Curl_closesocket(conn, portsock); Curl_closesocket(conn, portsock);
/* don't retry using PORT */ /* don't retry using PORT */
ftpc->count1 = PORT; ftpc->count1 = PORT;
@ -1028,6 +1030,8 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
result = Curl_pp_sendf(&ftpc->pp, "%s %s", mode[fcmd], tmp); result = Curl_pp_sendf(&ftpc->pp, "%s %s", mode[fcmd], tmp);
if(result) { if(result) {
failf(data, "Failure sending PORT command: %s",
curl_easy_strerror(result));
Curl_closesocket(conn, portsock); Curl_closesocket(conn, portsock);
/* bail out */ /* bail out */
state(conn, FTP_STOP); state(conn, FTP_STOP);