1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Julien Chaffraix pointed out a comment mistake, and I re-indented the code

slightly while editing
This commit is contained in:
Daniel Stenberg 2010-02-02 08:48:58 +00:00
parent 9f6c4daa27
commit 17a2c32ca9

View File

@ -879,9 +879,8 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
error = SOCKERRNO; error = SOCKERRNO;
if(error == EADDRNOTAVAIL) { if(error == EADDRNOTAVAIL) {
/* The requested bind address is not local /* The requested bind address is not local. Use the address used for
* use the address used forthe control connection instead * the control connection instead and restart the port loop
* restart the port loop
*/ */
failf(data, "bind(port=%i) failed: %s", port, failf(data, "bind(port=%i) failed: %s", port,
Curl_strerror(conn, error) ); Curl_strerror(conn, error) );
@ -895,14 +894,13 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
} }
port = port_min; port = port_min;
continue; continue;
}else }
if(error != EADDRINUSE && error != EACCES) { else if(error != EADDRINUSE && error != EACCES) {
failf(data, "bind(port=%i) failed: %s", port, failf(data, "bind(port=%i) failed: %s", port,
Curl_strerror(conn, error) ); Curl_strerror(conn, error) );
sclose(portsock); sclose(portsock);
return CURLE_FTP_PORT_FAILED; return CURLE_FTP_PORT_FAILED;
} }
} }
else else
break; break;