projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ec1bfe
)
tab => space
author
Daniel Stenberg
<daniel@haxx.se>
Sat, 9 Sep 2006 11:45:05 +0000
(11:45 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sat, 9 Sep 2006 11:45:05 +0000
(11:45 +0000)
lib/ftp.c
patch
|
blob
|
history
diff --git
a/lib/ftp.c
b/lib/ftp.c
index
e935691
..
562944c
100644
(file)
--- 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",