aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 50bd2918e..fe40ac2a0 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1211,10 +1211,10 @@ CURLcode ftp_use_port(struct connectdata *conn)
if(bind(portsock, (struct sockaddr *)&sa, size) >= 0) {
/* we succeeded to bind */
struct sockaddr_in add;
- size = sizeof(add);
+ socklen_t socksize = sizeof(add);
if(getsockname(portsock, (struct sockaddr *) &add,
- (socklen_t *)&size)<0) {
+ &socksize)<0) {
failf(data, "getsockname() failed");
return CURLE_FTP_PORT_FAILED;
}