aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/url.c b/lib/url.c
index 6657b1832..33048c8b5 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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) {