diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-11-11 22:36:00 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-11-11 22:36:00 +0000 |
commit | 66eb98bb0a3d171b91c77f8a536011f6b25c1adc (patch) | |
tree | dd753011a607a248f3fbfaf946ed8c9883203dfc /lib/connect.c | |
parent | 299546f5c0bd1b8ba5a463efd6f087974ae4633a (diff) |
unlock dns cache entries with a function call instead of a variable fiddle
Diffstat (limited to 'lib/connect.c')
-rw-r--r-- | lib/connect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connect.c b/lib/connect.c index b97c9da90..d2080c452 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -249,8 +249,8 @@ static CURLcode bindlocal(struct connectdata *conn, if ( h ) { Curl_addrinfo *addr = h->addr; - h->inuse--; /* decrease the use-counter, we don't need it anymore - after this function has returned */ + Curl_resolv_unlock(h); + /* we don't need it anymore after this function has returned */ memset((char *)&sa, 0, sizeof(sa)); #ifdef ENABLE_IPV6 |