mirror of
https://github.com/curl/curl.git
synced 2026-07-31 12:38:04 +03:00
Fixed ftp support with uClibc due to differing inet_ntoa_r() behaviour.
This commit is contained in:
parent
9a5c21c16f
commit
efaf688650
6 changed files with 32 additions and 14 deletions
|
|
@ -1524,7 +1524,7 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
|
|||
&separator[2],
|
||||
&num,
|
||||
&separator[3])) {
|
||||
char sep1 = separator[0];
|
||||
const char sep1 = separator[0];
|
||||
int i;
|
||||
|
||||
/* The four separators should be identical, or else this is an oddly
|
||||
|
|
@ -1539,7 +1539,7 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
|
|||
newport = num;
|
||||
|
||||
/* use the same IP we are already connected to */
|
||||
snprintf(newhost, NEWHOST_BUFSIZE, "%s", conn->ip_addr_str, newhost);
|
||||
snprintf(newhost, NEWHOST_BUFSIZE, "%s", conn->ip_addr_str);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue