projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2f7037
)
fixed the Curl_resolv()'s return code when the looked up host was already
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 14 Jan 2004 09:05:54 +0000
(09:05 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 14 Jan 2004 09:05:54 +0000
(09:05 +0000)
in the cache (Vincent Bronner)
lib/hostip.c
patch
|
blob
|
history
diff --git
a/lib/hostip.c
b/lib/hostip.c
index
256ceeb
..
2509c95
100644
(file)
--- a/
lib/hostip.c
+++ b/
lib/hostip.c
@@
-348,8
+348,7
@@
int Curl_resolv(struct connectdata *conn,
rc = 1; /* no info yet */
}
}
- else
- {
+ else {
if(data->share)
Curl_share_lock(data, CURL_LOCK_DATA_DNS, CURL_LOCK_ACCESS_SINGLE);
@@
-359,15
+358,15
@@
int Curl_resolv(struct connectdata *conn,
if(data->share)
Curl_share_unlock(data, CURL_LOCK_DATA_DNS);
- if(!dns)
{
+ if(!dns)
/* returned failure, bail out nicely */
Curl_freeaddrinfo(addr);
- }
else
rc = 0;
}
}
-
+ else
+ rc = 0;
*entry = dns;