cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: problems with cached addresses - anyone?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 15 Feb 2004 17:56:55 +0100 (CET)

On Sun, 15 Feb 2004, Grigory Entin wrote:

> Anyway I'd like to do whatever I can.. Just ask.

Try applying this patch:

diff -u -r1.119 hostip.c
--- lib/hostip.c 12 Feb 2004 16:02:55 -0000 1.119
+++ lib/hostip.c 15 Feb 2004 16:55:15 -0000
@@ -367,8 +367,10 @@
         rc = 0;
     }
   }
- else
+ else {
+ dns->inuse++; /* we use it! */
     rc = 0;
+ }

   *entry = dns;

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-02-15