aboutsummaryrefslogtreecommitdiff
path: root/lib/url.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/url.c
parent2cff2518631fc538c127c1e94c47c743e2a64661 (diff)
ipv4-fixes for the new Curl_dns_entry struct and Curl_resolv() proto
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 45a79b16f..817bb6d56 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1580,7 +1580,7 @@ static CURLcode ConnectPlease(struct connectdata *conn,
memset((char *) &conn->serv_addr, '\0', sizeof(conn->serv_addr));
memcpy((char *)&(conn->serv_addr.sin_addr),
(struct in_addr *)addr, sizeof(struct in_addr));
- conn->serv_addr.sin_family = hostaddr->h_addrtype;
+ conn->serv_addr.sin_family = hostaddr->addr->h_addrtype;
conn->serv_addr.sin_port = htons((unsigned short)conn->port);
#endif