aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ftp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index e935691f6..562944c77 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -228,7 +228,7 @@ static CURLcode AllowServerConnect(struct connectdata *conn)
socklen_t size = (socklen_t) sizeof(add);
if(0 == getsockname(sock, (struct sockaddr *) &add, &size)) {
- size = sizeof(add);
+ size = sizeof(add);
s=accept(sock, (struct sockaddr *) &add, &size);
}
@@ -1082,7 +1082,6 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
if(!addr) {
/* pick a suitable default here */
-
if (getsockname(conn->sock[FIRSTSOCKET],
(struct sockaddr *)&sa, &sslen)) {
failf(data, "getsockname() failed: %s",