cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ares + curl_multi : segfault on lookup failure

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 20 Aug 2003 01:23:11 +0200 (CEST)

On Tue, 19 Aug 2003, Jeff Pohlmeyer wrote:

> Test 507 also fails here...

Ah. I just noticed. The patch should probably look like this:

--- hostip.c 6 Aug 2003 15:26:02 -0000 1.92
+++ hostip.c 19 Aug 2003 23:22:03 -0000
@@ -408,14 +408,13 @@
   if(count)
     ares_process(data->state.areschannel, &read_fds, &write_fds);

- if(conn->async.done) {
- *done = TRUE;
+ *done = FALSE;

+ if(conn->async.done) {
     if(!conn->async.dns)
       return CURLE_COULDNT_RESOLVE_HOST;
+ *done = TRUE;
   }
- else
- *done = FALSE;

   return CURLE_OK;
 }

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
Received on 2003-08-20