aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-02-02 08:48:58 +0000
committerDaniel Stenberg <daniel@haxx.se>2010-02-02 08:48:58 +0000
commit17a2c32ca951c4c32b7be345a9f296f34970a9d4 (patch)
treeeb806ff92a662e7e6675cd5b04df12205ddec915
parent9f6c4daa27323603368907d31ed6a4c6e1aa9179 (diff)
Julien Chaffraix pointed out a comment mistake, and I re-indented the code
slightly while editing
-rw-r--r--lib/ftp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 855c0deb5..d34663013 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -879,9 +879,8 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
error = SOCKERRNO;
if(error == EADDRNOTAVAIL) {
- /* The requested bind address is not local
- * use the address used forthe control connection instead
- * restart the port loop
+ /* The requested bind address is not local. Use the address used for
+ * the control connection instead and restart the port loop
*/
failf(data, "bind(port=%i) failed: %s", port,
Curl_strerror(conn, error) );
@@ -895,14 +894,13 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
}
port = port_min;
continue;
- }else
- if(error != EADDRINUSE && error != EACCES) {
+ }
+ else if(error != EADDRINUSE && error != EACCES) {
failf(data, "bind(port=%i) failed: %s", port,
Curl_strerror(conn, error) );
sclose(portsock);
return CURLE_FTP_PORT_FAILED;
}
-
}
else
break;