diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-11-05 11:07:49 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-11-05 11:07:49 +0000 |
commit | 0ff1ca30c3e9e36b553c354d18de5c5f80d1af69 (patch) | |
tree | 18b295b8f850cebef65fb53ea36bbea7e48e2911 /lib/url.c | |
parent | 2cff2518631fc538c127c1e94c47c743e2a64661 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |