unlock dns cache entries with a function call instead of a variable fiddle

This commit is contained in:
Daniel Stenberg
2002-11-11 22:36:00 +00:00
parent 299546f5c0
commit 66eb98bb0a
4 changed files with 18 additions and 6 deletions

View File

@@ -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