cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PATCH: Fix for crash in c-ares

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 23 May 2007 23:19:08 +0200 (CEST)

On Mon, 21 May 2007, Ravi Pratap wrote:

> Here's a patch for a crash in c-ares on init, on a host that has no network
> adapter, or has its cable unplugged. The crash really is related to the
> status variable not being initialized properly in that code path.

That patch puzzles me. If 'status' wasn't set properly previously, then won't
the if line on line 740 be weird? I mean if the init is the problem, shouldn't
the fix be in the init?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-05-23