aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-11-05 11:07:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-11-05 11:07:49 +0000
commit0ff1ca30c3e9e36b553c354d18de5c5f80d1af69 (patch)
tree18b295b8f850cebef65fb53ea36bbea7e48e2911 /lib/ftp.c
parent2cff2518631fc538c127c1e94c47c743e2a64661 (diff)
ipv4-fixes for the new Curl_dns_entry struct and Curl_resolv() proto
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 9e7e3a7d6..5dd38771d 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1183,7 +1183,7 @@ CURLcode ftp_use_port(struct connectdata *conn)
*
*/
struct sockaddr_in sa;
- struct hostent *h=NULL;
+ struct Curl_dns_entry *h=NULL;
unsigned short porttouse;
char myhost[256] = "";
bool sa_filled_in = FALSE;
@@ -1229,8 +1229,8 @@ CURLcode ftp_use_port(struct connectdata *conn)
if(!sa_filled_in) {
memset((char *)&sa, 0, sizeof(sa));
memcpy((char *)&sa.sin_addr,
- h->h_addr,
- h->h_length);
+ h->addr->h_addr,
+ h->addr->h_length);
sa.sin_family = AF_INET;
sa.sin_addr.s_addr = INADDR_ANY;
}
@@ -1276,7 +1276,7 @@ CURLcode ftp_use_port(struct connectdata *conn)
struct in_addr in;
unsigned short ip[5];
(void) memcpy(&in.s_addr,
- h?*h->h_addr_list:(char *)&sa.sin_addr.s_addr,
+ h?*h->addr->h_addr_list:(char *)&sa.sin_addr.s_addr,
sizeof (in.s_addr));
#ifdef HAVE_INET_NTOA_R