diff options
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1765,10 +1765,10 @@ static int handleSock5Proxy(const char *proxy_name, Curl_addrinfo *hp=NULL; int rc = Curl_resolv(conn, TRUE_HOSTNAME(conn), conn->remote_port, &dns); - if(rc == -1) + if(rc == CURLRESOLV_ERROR) return 1; - if(rc == 1) + if(rc == CURLRESOLV_PENDING) /* this requires that we're in "wait for resolve" state */ rc = Curl_wait_for_resolv(conn, &dns); @@ -3062,7 +3062,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, /* Resolve target host right on */ rc = Curl_resolv(conn, TRUE_HOSTNAME(conn), conn->port, &hostaddr); - if(rc == 1) + if(rc == CURLRESOLV_PENDING) *async = TRUE; else if(!hostaddr) { @@ -3077,7 +3077,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, /* resolve proxy */ rc = Curl_resolv(conn, conn->proxyhost, conn->port, &hostaddr); - if(rc == 1) + if(rc == CURLRESOLV_PENDING) *async = TRUE; else if(!hostaddr) { |