[Libevent-users] [PATCHES] use monotonic clock & infinite timeouts
Niels Provos
provos at citi.umich.edu
Sun Aug 5 02:52:46 EDT 2007
On 8/4/07, Scott Lamb <slamb at slamb.org> wrote:
> Here's the relevant bit from frame #1:
>
> 521 if (req->cb != NULL)
> 522 (*req->cb)(NULL, req->cb_arg);
>
> So that test will cause bus errors any time the http connection fails.
> Any particular reason it's passing NULL here rather than req? It hasn't
> been deleted yet.
The NULL indicates that the request failed. The HTTP layer is going
to free it up. However, the regression test is not expecting the
request to fail and then dereferences a NULL pointer.
Niels.
More information about the Libevent-users
mailing list