curl-library
Re: Local "prev" in curl_multi_add_handle
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 12 Feb 2007 13:11:02 +0100 (CET)
Date: Mon, 12 Feb 2007 13:11:02 +0100 (CET)
On Mon, 12 Feb 2007, Jeff Pohlmeyer wrote:
> I can see where the "prev" variable gets initialized to NULL on line 366,
> and that it gets tested on line 392, but I don't see how the test can be
> anything but false.
>
> It looks like "prev" should carry the previous value of "cl" into the next
> iteration?
>
> Here is a one-line patch that should fix it...
Indeed it is a flaw. Thanks for finding and fixing. Committed just now.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-02-12