Commit 5eb178855a7263a50e38139089720fef7c3a1642

Nate Rosenblum 2013-09-03T14:46:47

Avoid racy bufferevent activation The evhttp_send_reply method invokes evhttp_write_buffer with a callback that may release the underlying request object and bufferevent upon completion. This cleanup callback is invoked by the underlying bufferevent's write callback. Improperly enabling write events before referencing the bufferevent could lead to use after free and memory corruption.