diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-07-23 12:55:24 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-07-23 12:55:24 +0000 |
commit | 556ce1c6a126825f1b525f1c539cd9a0509aed47 (patch) | |
tree | 4e2e3913dd321c82a8e16bf6b90c301bcd6c63b2 /lib | |
parent | cc4ff62681c593e47e74b7a431f5f6427346b9b5 (diff) |
minor code style fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hostip.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/hostip.c b/lib/hostip.c index 5be36a6fa..b1b175d9e 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -252,9 +252,7 @@ struct Curl_dns_entry *Curl_resolv(struct SessionHandle *data, return NULL; if(data->share) - { Curl_share_lock(data, CURL_LOCK_DATA_DNS, CURL_LOCK_ACCESS_SINGLE); - } /* See if its already in our dns cache */ dns = Curl_hash_pick(data->hostcache, entry_id, entry_len+1); @@ -297,14 +295,13 @@ struct Curl_dns_entry *Curl_resolv(struct SessionHandle *data, void Curl_resolv_unlock(struct SessionHandle *data, struct Curl_dns_entry *dns) { if(data->share) - { Curl_share_lock(data, CURL_LOCK_DATA_DNS, CURL_LOCK_ACCESS_SINGLE); - } + dns->inuse--; + if(data->share) - { Curl_share_unlock(data, CURL_LOCK_DATA_DNS); - } + } /* |