curl-library
Re: [patch] libcurl 7.12.2-20040917 and CURLOPT_VERBOSE may read free()ed data
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 23 Sep 2004 16:07:29 +0200 (CEST)
Date: Thu, 23 Sep 2004 16:07:29 +0200 (CEST)
On Thu, 23 Sep 2004, Bertrand Demiddelaer wrote:
> Curl_resolv_unlock() is not always called from Curl_done()... btw, I read
> somewhere it should be called only once per Curl_resolv_lock() call, maybe
> we should have a look at this ?
Yes, I smell a problem here. I think the Curl_resolv_unlock() call needs to be
moved to the curl_disconnect() call so that the DNS entry for the host remain
locked as long as the connection is still alive and present. It feels like
that could solve your problem.
Can you try that simple fix?
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-09-23