diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-01-03 10:22:59 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-01-03 10:22:59 +0000 |
commit | 6de7dc5879b3605a180dafa05f792f132eafdcaa (patch) | |
tree | 9684f8c2427082965204ee5589a2ee1e5dc6191d /lib/url.c | |
parent | 6aaee5f23bdc75826a733e40335078b97bfe1967 (diff) |
Sterling Hughes' provided initial DNS cache source code.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -940,9 +940,6 @@ CURLcode Curl_disconnect(struct connectdata *conn) if(conn->proto.generic) free(conn->proto.generic); - if(conn->hostent_buf) /* host name info */ - Curl_freeaddrinfo(conn->hostent_buf); - if(conn->newurl) free(conn->newurl); @@ -2060,8 +2057,8 @@ static CURLcode CreateConnection(struct SessionHandle *data, /* Resolve target host right on */ if(!conn->hostaddr) { /* it might already be set if reusing a connection */ - conn->hostaddr = Curl_getaddrinfo(data, conn->name, conn->port, - &conn->hostent_buf); + conn->hostaddr = Curl_resolv(data, conn->name, conn->port, + &conn->hostent_buf); } if(!conn->hostaddr) { failf(data, "Couldn't resolve host '%s'", conn->name); @@ -2075,8 +2072,8 @@ static CURLcode CreateConnection(struct SessionHandle *data, /* resolve proxy */ /* it might already be set if reusing a connection */ - conn->hostaddr = Curl_getaddrinfo(data, conn->proxyhost, conn->port, - &conn->hostent_buf); + conn->hostaddr = Curl_resolv(data, conn->proxyhost, conn->port, + &conn->hostent_buf); if(!conn->hostaddr) { failf(data, "Couldn't resolve proxy '%s'", conn->proxyhost); |