Remember to initialize timeout events for bufferevent_async

Fixes segfaults in unit tests.
This commit is contained in:
Christopher Davis 2010-08-06 09:33:55 -04:00 committed by Nick Mathewson
parent 170ffd2b1d
commit de1f5d6d87

View File

@ -431,6 +431,8 @@ bufferevent_async_new(struct event_base *base,
event_overlapped_init(&bev_a->write_overlapped, write_complete);
bev_a->ok = fd >= 0;
if (bev_a->ok)
_bufferevent_init_generic_timeout_cbs(bev);
return bev;
err: