mirror of
https://github.com/curl/curl.git
synced 2026-06-01 22:14:17 +03:00
fixed FTPSENDF for ipv6 compiles
This commit is contained in:
parent
f6b2e9e8a4
commit
027fc719cc
1 changed files with 7 additions and 3 deletions
10
lib/ftp.c
10
lib/ftp.c
|
|
@ -987,8 +987,10 @@ CURLcode ftp_use_port(struct connectdata *conn)
|
|||
*q = '\0';
|
||||
}
|
||||
|
||||
FTPSENDF(conn, "%s |%d|%s|%s|", *modep, eprtaf,
|
||||
portmsgbuf, tmp);
|
||||
result = Curl_ftpsendf(conn, "%s |%d|%s|%s|", *modep, eprtaf,
|
||||
portmsgbuf, tmp);
|
||||
if(result)
|
||||
return result;
|
||||
} else if (strcmp(*modep, "LPRT") == 0 ||
|
||||
strcmp(*modep, "PORT") == 0) {
|
||||
int i;
|
||||
|
|
@ -1035,7 +1037,9 @@ CURLcode ftp_use_port(struct connectdata *conn)
|
|||
}
|
||||
}
|
||||
|
||||
FTPSENDF(conn, "%s %s", *modep, portmsgbuf);
|
||||
result = Curl_ftpsendf(conn, "%s %s", *modep, portmsgbuf);
|
||||
if(result)
|
||||
return result;
|
||||
}
|
||||
|
||||
nread = Curl_GetFTPResponse(buf, conn, &ftpcode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue