aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c4
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